summaryrefslogtreecommitdiff
path: root/src/session.cc
Commit message (Collapse)AuthorAgeFilesLines
* Adding option --no-aliases to completely disable alias expansionPeter Feigl2014-02-261-0/+5
|
* Adding option --recursive-aliases, adding documentation to man-page and manualPeter Feigl2014-02-261-0/+6
|
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Fixed problem finding the default priced file.Craig Earls2013-01-291-7/+8
| | | | Bug fix to detect badly specified priced files on the command line didn't handle the default correctly.
* Merge pull request #107 from afh/pull/time_colonJohn Wiegley2013-01-291-1/+3
|\ | | | | Add --time-colon option
| * Add --time-colon optionAlexis Hildebrandt2012-11-101-1/+3
| | | | | | | | | | | | | | | | | | The --time-colon option will display the value for a seconds based commodity as real hours and minutes. For example 8100 seconds by default will be displayed as 2.25 whereas with the --time-colon option they will be displayed as 2:15.
* | Fixes bugs 705 and 862. Ledger now fails if init or pricedb files are ↵Craig Earls2013-01-291-1/+5
| | | | | | | | specified on the command line but not found.
* | change handling of standard inputJohann Klähn2013-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For `-f /dev/stdin`, the `pathname` of the parsing context will be empty as for any other streamed input. `instance_t::include_directive` did not work as expected for `-f /dev/stdin` and relative file names. One would expect them to be relative to the current directory rather than `/dev`. This will lead to `While parsing file ""` messages. This could be adjusted to read `While parsing standard input`, but maybe it's not worth the special cases. This commit also fixes bug 788: behaviour of source_context for '-f -'
* | Revert "fix bug 788: behaviour of source_context for '-f -'"John Wiegley2013-01-161-1/+0
| | | | | | | | This reverts commit 0a1ff035421d5f97675ad769a7fcdbc68399f3dc.
* | fix bug 788: behaviour of source_context for '-f -'Johann Klähn2013-01-151-0/+1
|/ | | | | | `session_t::read_data` did not set context.pathname to `/dev/stdin` for the special case `-f -`. I chose to adjust `source_context` too as there is no sensible context if no file name is provided.
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-4/+4
|
* Always call TRACE_CTOR at the end of constructorsJohn Wiegley2012-03-201-2/+2
|
* Added option --day-breakJohn Wiegley2012-03-171-0/+3
|
* Fixed options processing of --value-exprJohn Wiegley2012-03-091-2/+5
|
* Added --value-expr optionJohn Wiegley2012-03-091-0/+2
|
* Added int and str value expression functionsJohn Wiegley2012-03-091-0/+19
|
* Allow --options to be added by the user in PythonJohn Wiegley2012-03-011-0/+2
|
* Started writing Python unit testsJohn Wiegley2012-03-011-3/+36
|
* Refactored the notion of "the current parsing context"John Wiegley2012-03-011-6/+25
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* --explicit wasn't being handled correctlyJohn Wiegley2012-02-271-1/+3
|
* Added --check-payees optionJohn Wiegley2012-02-271-0/+3
|
* Added new account/payee/commodity directivesJohn Wiegley2012-02-271-0/+13
| | | | | Also added supporting options: --explicit, --permissive, --pedantic, as well as new behavior for --strict.
* Cleanup whitespaceJohn Wiegley2011-08-181-1/+1
|
* Support Boost 1.46 and Boost.Filesystem v3John Wiegley2011-02-281-1/+2
|
* Increase display precision of hours to 2 placesJohn Wiegley2010-12-121-1/+1
|
* Transactions no longer needed for budget/forecastJohn Wiegley2010-06-201-4/+6
| | | | | This means you can forecast or budget against a file containing only periodic transactions.
* Added initial implementation of lot_*() functionsJohn Wiegley2010-06-141-1/+34
|
* Revised how Ledger handles the "current year"John Wiegley2010-06-141-3/+1
| | | | | Now when the Y directive sets the current year for a region, it affects everything, as if the clock really were set back to that year.
* Restored min() and max() virtual functionsJohn Wiegley2010-06-131-0/+18
|
* Completely reworked argument passing in expressionsJohn Wiegley2010-06-131-4/+3
|
* Added a new scope_value() inline helper functionJohn Wiegley2010-06-131-4/+2
|
* account(NAME) function can lookup account objectsJohn Wiegley2010-06-131-2/+25
| | | | | | For example, just the word "account" returns the name of the current posting's account, but account("Expenses:Food") returns the actual account object, so that it's total may be accessed.
* Untabified all source filesJohn Wiegley2010-06-111-24/+24
|
* Changed --european option to --decimal-commaJohn Wiegley2010-06-011-3/+1
| | | | Fixes #211 / 1736ACA5-5DE6-4826-AEB4-DB5B2A2217AC
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-2/+2
|
* session_t now holds a std::auto_prt<journal_t>John Wiegley2009-11-121-3/+3
|
* Don't use archive_t if boost_serialization unavailableJohn Wiegley2009-11-061-0/+4
|
* Renamed --set-reported-account to just --accountJohn Wiegley2009-11-061-5/+5
| | | | | | | This fits better with the --amount and --total options, which both change the amount and total used for calculation. Same with --account: it happens after filtering, but before calculation so that balance reports look as you'd expect.
* The binary cache is working againJohn Wiegley2009-11-061-11/+1
|
* Moved journal reading code into journal_tJohn Wiegley2009-11-051-41/+5
|
* Moved xdata clearing code into each type properJohn Wiegley2009-11-051-19/+0
|
* Segregated symbols into 5 separate namespacesJohn Wiegley2009-11-041-13/+16
| | | | | | | | | | | | | | | | | | | | | The different namespaces are: Function Value expression functions, which receive a "context" Option Command-line options Precommand Commands which are invoked before reading the journal Command Commands which are invoked after reading the journal Directive Directives that occur at column 0 in a data file This greatly eases the ability for Python uses to add intercept hooks to change how the basic Ledger module functions. An example of what should be possible soon: import ledger def my_foo_handler(value): print "--foo received:", value ledger.add_handler(ledger.Option, "foo=", my_foo_handler)
* Removed an unnecessary commentJohn Wiegley2009-11-031-3/+0
|
* Added a --european flag, to use commas for decimalsJohn Wiegley2009-11-021-0/+3
| | | | | | Ledger can often figure this out for itself, but this flag just makes it the default behavior. It is meant to be added to one's ~/.ledgerrc file.
* Improved archive header logic for cache filesJohn Wiegley2009-11-011-1/+3
|
* Removed most #if 0 blocks and callout commentsJohn Wiegley2009-10-311-2/+0
|
* Don't add price_db to sources if it doesn't existJohn Wiegley2009-10-311-3/+5
|