summaryrefslogtreecommitdiff
path: root/src/global.cc
Commit message (Collapse)AuthorAgeFilesLines
* Moved journal reading code into journal_tJohn Wiegley2009-11-051-1/+2
|
* Segregated symbols into 5 separate namespacesJohn Wiegley2009-11-041-20/+24
| | | | | | | | | | | | | | | | | | | | | 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 most #if 0 blocks and callout commentsJohn Wiegley2009-10-311-4/+0
|
* Added two missing castsJohn Wiegley2009-10-311-1/+2
|
* Moved ownership of master account into journal_tJohn Wiegley2009-10-301-5/+6
| | | | The journal_t now completely represents the data part of a session.
* Setting --date-format in ~/.ledgerrc works againJohn Wiegley2009-10-291-7/+15
|
* If isatty is available, no colors/pager for non-ttysJohn Wiegley2009-10-291-1/+7
|
* Colorization at the terminal now on by defaultJohn Wiegley2009-10-281-0/+3
|
* Whitespace changeJohn Wiegley2009-10-271-4/+2
|
* Added --actual-dates, for overriding --effectiveJohn Wiegley2009-10-271-1/+3
| | | | | This is so that if someone has --effective in their .ledgerrc, they can force the use of actual dates.
* Rewrote the way date and time I/O is managedJohn Wiegley2009-10-251-2/+4
|
* The print command now implies --actualJohn Wiegley2009-06-281-0/+3
|
* Disable use of ~/.pricedb when --args-only is presentJohn Wiegley2009-06-281-0/+2
|
* The --download option is now fully restoredJohn Wiegley2009-06-261-2/+2
|
* More refactoring for --downloadJohn Wiegley2009-06-241-4/+4
|
* Split commodity.h/cc into three filesJohn Wiegley2009-06-241-7/+7
| | | | | | commodity.h - code for commodity_t annotate.h - commodity annotations pool.h - commodity pool management
* Restored --download, although not done yetJohn Wiegley2009-06-241-1/+12
| | | | | | 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.
* Fixed the --args-only option (sequence problem)John Wiegley2009-06-221-2/+7
|
* Added a code commentJohn Wiegley2009-06-181-0/+3
|
* The -X option now accepts price settingsJohn Wiegley2009-06-181-0/+8
| | | | | | | For example, if you had 100 AU (onces of gold) and wanted to report it in dollars, but at a price of $997 per ounce, you could now easily say: ledger bal -X '$,AU=$997'
* Restored --plot-amount-format, --plot-total-formatJohn Wiegley2009-06-181-6/+16
|
* Allow --period flag to specify a report rangeJohn Wiegley2009-06-171-3/+26
|
* Added new debug option --optionsJohn Wiegley2009-06-021-24/+57
| | | | | This reports which options are in place before invoking a command, and where exactly each option value came from.
* Rewrote the date interval parser/stepperJohn Wiegley2009-03-231-2/+5
| | | | | The new implementation uses boost::gregorian::date_duration objects, rather than manually stepping.
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Removed the --totals optionJohn Wiegley2009-03-051-3/+0
|
* If Python is not in use, global includes sessionJohn Wiegley2009-03-051-0/+2
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-2/+5
|
* Cured several harmless compiler warningsJohn Wiegley2009-03-041-1/+1
|
* Normalized how account totals are calculatedJohn Wiegley2009-03-031-0/+3
|
* Corrected warnings g++-4.3.3 was complaining aboutJohn Wiegley2009-02-281-1/+1
|
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-6/+6
| | | | | | | | | | | | | | | | 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".
* Fixes to the way annotated prices are displayedJohn Wiegley2009-02-241-1/+2
|
* The Great Renaming, Part IIJohn Wiegley2009-02-231-7/+7
| | | | | The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset.
* Fixed bug: -- was not stopping option processingJohn Wiegley2009-02-221-3/+5
|
* The --help (-h, -H) options now visit the man pageJohn Wiegley2009-02-211-0/+28
|
* Added --start-of-week option, used with --weeklyJohn Wiegley2009-02-211-0/+2
| | | | | For example, --start-of-week=monday can be used to report weeks that begin on Mondays.
* Don't use auto-widths for widths explicitly givenJohn Wiegley2009-02-201-21/+40
|
* Rewrote the equity command, which is working againJohn Wiegley2009-02-201-6/+7
| | | | | | The old implementation used an account formatter, and was very specialized. The new is done as a transaction filter, and works along with everything else, eliminating bugs special to the equity report.
* Auto-size register report based on COLUMNSJohn Wiegley2009-02-191-0/+36
|
* The sequence -M -p 2004 now equals -p 2004 -MJohn Wiegley2009-02-191-9/+9
|
* Added --args-only flags, to ignore init and envJohn Wiegley2009-02-161-4/+9
|
* Normalized handling of several report optionsJohn Wiegley2009-02-151-16/+3
|
* Added a "reload" command, for use at the REPLJohn Wiegley2009-02-131-19/+1
| | | | | | | 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.
* Re-enabled some code, and removed a bunch of deadwood.John Wiegley2009-02-121-4/+0
|
* Fixed the use of --effective and --date-format (-y).John Wiegley2009-02-091-0/+8
|
* pyinterp.cc shares global session; accept full paths passed to --import.John Wiegley2009-02-081-1/+12
|
* If a ledger file is specified in .ledgerrc, ignore the environment.John Wiegley2009-02-081-2/+3
|
* If LEDGER_FILE was seen, ignore LEDGER.John Wiegley2009-02-081-6/+12
|
* Inverted the default display mode for balance reports. Use -n to collapseJohn Wiegley2009-02-081-2/+0
| | | | them, as this fits better with what -n does for register reports.