summaryrefslogtreecommitdiff
path: root/src/session.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Create a --cache option, for using a binary cacheJohn Wiegley2009-10-311-29/+69
|
* Moved ownership of master account into journal_tJohn Wiegley2009-10-301-49/+7
| | | | The journal_t now completely represents the data part of a session.
* Added serialization methods for most typeJohn Wiegley2009-10-301-0/+20
| | | | | This allows journal_t objects to be completed serialized to disk and deserialized.
* Setting --date-format in ~/.ledgerrc works againJohn Wiegley2009-10-291-5/+7
|
* The default ledger file is now ~/.ledgerJohn Wiegley2009-10-281-2/+10
|
* Rewrote the way date and time I/O is managedJohn Wiegley2009-10-251-0/+2
|
* Split commodity.h/cc into three filesJohn Wiegley2009-06-241-0/+1
| | | | | | commodity.h - code for commodity_t annotate.h - commodity annotations pool.h - commodity pool management
* Restored --download, although not done yetJohn Wiegley2009-06-241-4/+8
| | | | | | The problem at this point is that it's recording prices in the price database multiple times; it should only need to download a price for each commodity once per day.
* Restored --percent option, added baseline testJohn Wiegley2009-06-211-0/+6
|
* When --end is used, set a "terminus" dateJohn Wiegley2009-06-161-15/+0
| | | | | | | This means that final balance valuations (with -V or -X) will be done in terms of the date given to --end, rather than based on the current day. Fixes 647D5DB9-DBBB-47C8-80CE-F3F70E3B0253
* Added new debug option --optionsJohn Wiegley2009-06-021-2/+2
| | | | | This reports which options are in place before invoking a command, and where exactly each option value came from.
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Changed the way that account balances are computedJohn Wiegley2009-03-061-1/+6
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-1/+4
|
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-5/+5
| | | | | | | | | | | | | | | | These strings are now collected automagically in the file po/ledger.pot. If you'd like to produce a translation, just run this command after building Ledger: msginit -l LOCALE -o LANG.po -i po/ledger.pot Where LOCALE is a string like de or en_GB, and LANG is a short descriptive word for your language. Then send me this .po file so I can commit it to the Ledger sources (alternatively, you could maintain the file in a fork on GitHub), and setup the build script to format and install your new message catalog during a "make install".
* Allow value expressions access to session optionsJohn Wiegley2009-02-241-0/+4
|
* Added "date" valexpr to session, for bal -VJohn Wiegley2009-02-241-0/+5
|
* The Great Renaming, Part IIJohn Wiegley2009-02-231-13/+13
| | | | | The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset.
* Added --exchange (-x) optionJohn Wiegley2009-02-221-0/+5
| | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD
* Enabled --current optionJohn Wiegley2009-02-201-0/+5
|
* Added a --strict session optionJohn Wiegley2009-02-191-1/+5
| | | | | | | When enabled, if any accounts or commodities are seen in an uncleared transaction, which were not seen previously in a cleared or pending transaction or a textual directive dealing with accounts or commodities, a warning is generated about the unknown item.
* Always perform tilde expansion on input pathnamesJohn Wiegley2009-02-181-7/+9
|
* Split up session_t::reread_journal_files()John Wiegley2009-02-151-3/+1
| | | | | You now call session_t::close_journal_files() followed by session_t::read_journal_files().
* Added a "reload" command, for use at the REPLJohn Wiegley2009-02-131-33/+63
| | | | | | | Created a new function, session_t::reread_journal_files, which throws away all previous state data and reads in the same files again. This is needed to allow Emacs to communicate with Ledger via the REPL, so that it tell Ledger when it has made changes to the user's data file.
* Break libledger_data's dependency on session_t.John Wiegley2009-02-091-1/+3
|
* Removed reference to session_t from the iterators module.John Wiegley2009-02-091-1/+1
|
* Added support for value expression definitions.John Wiegley2009-02-081-1/+2
| | | | | | | | Example: ] expr f(x) := x + 100 ] expr f(100) 200
* Added --leeway option (for quote downloading) into session_t.John Wiegley2009-02-071-0/+3
|
* Threw away the "multiple parser" infrastructure.John Wiegley2009-02-071-103/+15
|
* Allow value expressions to gain access to option settings.John Wiegley2009-02-071-20/+27
| | | | | | | | | | For example, "ledger eval options.limit" prints 0 (for false), but: "ledger -l hello eval options.limit" print "hello"s, since the value of options.limit, once set to a value, is that string. For flag options, such as -Y, eval prints 0 if unset, and 1 if set. This feature allows value expressions to be conditionalized based on the presence of user options.
* More revision to the way options are handled; reworked CSV command.John Wiegley2009-02-071-1/+1
|
* Moved the --abbrev-len option to report_t.John Wiegley2009-02-061-2/+1
|