summaryrefslogtreecommitdiff
path: root/src/item.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Rewrite the "print" command as a custom functionJohn Wiegley2010-03-081-12/+24
| | | | | There ended up being too many corner cases for the generalized formatter to handle.
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Added actual_date() methods for itemsJohn Wiegley2010-02-051-0/+5
|
* Added a "seq" sequence property for all itemsJohn Wiegley2010-02-041-0/+6
| | | | | This indicates the absolute parsing order of every transaction and posting. It is 0 for generated items.
* Added a --pivot=TAG optionJohn Wiegley2010-02-021-5/+33
| | | | | | This is equivalent to the following: --account='"TAG:" + tag(/TAG/)'
* Guard against using an uninitialized valueJohn Wiegley2010-01-181-1/+4
| | | | Fixes DDB54BB8-8C1C-4129-A137-07A38068F3BE
* Whitespace fixJohn Wiegley2009-11-241-2/+4
|
* Made the transaction date parser a bit more strictJohn Wiegley2009-11-151-10/+13
|
* Added historical support for single-letter valexprsJohn Wiegley2009-11-141-0/+5
|
* Changed the type being throw of some exceptionsJohn Wiegley2009-11-051-5/+5
|
* Segregated symbols into 5 separate namespacesJohn Wiegley2009-11-041-1/+5
| | | | | | | | | | | | | | | | | | | | | 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)
* If an item doesn't have a given tag, return ""John Wiegley2009-11-011-1/+1
|
* Improved arg checking for several valexpr functionsJohn Wiegley2009-10-311-5/+22
|
* Add a position_t object for tracking item positionsJohn Wiegley2009-10-301-13/+17
| | | | It is also optional, which is useful for generated items.
* Added missing check in item_t::get_actualJohn Wiegley2009-10-301-1/+1
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-1/+1
|
* Removed reliance on strptime/strftimeJohn Wiegley2009-10-111-2/+2
| | | | | | | | The code now uses Boost's input and output facets for times and dates. This ensures completely consistency regarding timezones and times, and fixes the regression test that was broken while I was away coding in London (where it was GMT-0 and I didn't notice the difference between local and GMT).
* Restored --percent option, added baseline testJohn Wiegley2009-06-211-0/+11
|
* If a posting comment is very short, let it hangJohn Wiegley2009-06-141-3/+5
| | | | This applies when using the "print" report, or the "comment" variable.
* Fix pointer const-ness in parse_tags()Andrew Potter2009-05-261-2/+2
|
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Cured several harmless compiler warningsJohn Wiegley2009-03-041-0/+2
|
* Changed how comments are output to be more logicalJohn Wiegley2009-03-011-6/+9
|
* Corrected warnings g++-4.3.3 was complaining aboutJohn Wiegley2009-02-281-1/+1
|
* The print command now prints xact's effective dateJohn Wiegley2009-02-271-0/+7
|
* If an item tag is already set, don't overwrite itJohn Wiegley2009-02-261-1/+2
|
* Added a new source_context functionJohn Wiegley2009-02-261-23/+2
|
* 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".
* Switched from using POST_AUTO to ITEM_GENERATEDJohn Wiegley2009-02-241-2/+10
|
* Added a new --raw option, for use with printJohn Wiegley2009-02-211-18/+28
|
* Added valexpr vars for accessing item positionJohn Wiegley2009-02-191-0/+23
| | | | | | | | - filename - beg_line - beg_pos - end_line - end_pos
* Fixed several unused value and param warningsJohn Wiegley2009-02-161-1/+1
|
* xact metadata searches get passed up to the entryJohn Wiegley2009-02-141-42/+52
| | | | | | That is, if a metadata tag cannot be found in a transaction, look in the parent entry to see if it was set there. Transactions "inherit" notational details from their entries.
* Rewrote the "entry" command. It's ALIVE!John Wiegley2009-02-111-0/+3
|
* Fixed the use of --effective and --date-format (-y).John Wiegley2009-02-091-7/+10
|
* Terminate the buffer used to read in item context.John Wiegley2009-02-081-0/+2
|
* Improved an error message that was trying to show transaction context.John Wiegley2009-02-081-3/+2
|
* Have all items respond to the "depth" property, defaulting to 0.John Wiegley2009-02-081-0/+6
|
* item_t::get_uncleared was returning true if CLEARED.John Wiegley2009-02-071-1/+1
|
* The "note" expressions returns an empty string if there is no note.John Wiegley2009-02-071-1/+1
|
* Refer to empty expression operators as simply NULL.John Wiegley2009-02-071-1/+1
|
* Greatly simplified the way option and command handlers are defined.John Wiegley2009-02-051-2/+0
|
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-16/+6
|
* Simplified the textual parser, and improved metadata support.John Wiegley2009-02-041-2/+28
|
* Removed used of src_idx.John Wiegley2009-02-031-34/+28
|
* Removed the global references to session->report.John Wiegley2009-02-031-2/+4
|
* Don't allow implicit matching of strings against masks, =~ is needed.John Wiegley2009-02-021-7/+23
|
* Use > quoting characters when excerpting from the user's data file.John Wiegley2009-02-021-1/+1
|
* Added a missing brace.John Wiegley2009-02-021-1/+1
|
* Simplified error context handling.John Wiegley2009-02-021-2/+45
|