summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Added more iterator methods to call_scope_tJohn Wiegley2010-05-081-0/+11
|
* Added any() and all() value expression macrosJohn Wiegley2010-05-086-6/+131
| | | | | | | | | | | | | | | | | | | | any() matches an expression against every post in a transaction or account, and returns true if any of them are true. all() tests if all are true. For example: ledger -l 'account =~ /Expense/ & any(account =~ /MasterCard/)' reg This reports every posting affecting an Expense account (regex match), but only if some other posting in the same transaction affects the MasterCard account. Both functions also take a second boolean argument. If it is false, the "source" posting is not considered. For example: ledger -l 'any(/x/, false)' This matches any posting where a *different* posting in the same transaction contains the letter 'x'.
* Added O_EXPAND operator, to handle macrosJohn Wiegley2010-05-082-3/+50
|
* interactive_t now takes an "X" for expressionsJohn Wiegley2010-05-082-0/+17
|
* Added a simple print() value expression functionJohn Wiegley2010-05-082-0/+17
| | | | This is really for debugging more than anything else.
* Allow expr_t& to be passed in a value_tJohn Wiegley2010-05-082-3/+57
|
* print command correctly prints amount expressionsJohn Wiegley2010-05-072-5/+22
|
* The --invert option now works with "convert"John Wiegley2010-05-071-1/+6
|
* The include directive now supports file globbingJohn Wiegley2010-03-173-5/+68
| | | | | This only happens at the base filename, not for any of the directory names for now.
* Added new --meta and --meta-width optionsJohn Wiegley2010-03-172-9/+52
| | | | | | | | The usages are: --meta=<TAG> prepend value of TAG before every line --meta-width=<NUM> force the meta column to be NUM wide --meta=<TAG>:<NUM> shortcut that also applies --meta-width
* Tags were not being set properly on postingsJohn Wiegley2010-03-173-23/+32
|
* The --pivot=X option now only matches the tag "X"John Wiegley2010-03-171-1/+1
|
* Improved the new implementation of "print"John Wiegley2010-03-171-4/+4
|
* Do not implicitly sort register outputJohn Wiegley2010-03-171-0/+2
| | | | The switches the default back to the same as 2.x, which is --unsorted.
* Short-circuit --head handler when count is reachedJohn Wiegley2010-03-162-4/+11
|
* Extended regexp syntax for "payee" and "capture"John Wiegley2010-03-101-4/+32
|
* Commented out the date limiter in the lookup codeJohn Wiegley2010-03-101-0/+2
|
* When deriving, don't carry over the code or notJohn Wiegley2010-03-101-6/+6
|
* Cleaned up the intelligent lookup algorithm a bitJohn Wiegley2010-03-101-87/+72
|
* Corrected a debug stringJohn Wiegley2010-03-101-1/+1
|
* Added experimental account lookup logicJohn Wiegley2010-03-084-24/+404
| | | | | This is used by the "xact" command, and the CSV importer. It is very slow O(xacts*records).
* The CSV reader now auto-correlates fields by regexJohn Wiegley2010-03-082-52/+210
|
* Added find() and operator[] to unistringJohn Wiegley2010-03-081-0/+19
|
* Rewrite the "print" command as a custom functionJohn Wiegley2010-03-0814-90/+358
| | | | | There ended up being too many corner cases for the generalized formatter to handle.
* Corrected a case for value < valueJohn Wiegley2010-03-061-1/+3
|
* Abstracted an sha1sum() functionJohn Wiegley2010-03-062-6/+11
|
* Fixed a problem with the "quoted" valexpr functionJohn Wiegley2010-03-051-2/+2
|
* Added some preliminary code for convert CSV to LedgerJohn Wiegley2010-03-056-2/+445
|
* Added new "payee" and "capture" directivesJohn Wiegley2010-03-053-1/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The payee directive allows for transformation of payee names during the parsing of a Ledger file. This means you can record the payee name in one form, but always have it reported in another form. The syntax is (and will be): payee PAYEE_NAME REGEXP or payee PAYEE_NAME REGEXP1 REGEXP2 ... The account directive sets the account automatically based on the payee iff the base account name is Unknown. For example, if you have a bunch of transaction in Expenses:Unknown, you can assign accounts for several automatically using: account ACCOUNT_NAME PAYEE_REGEXP or account ACCOUNT_NAME PAYEE_REGEXP1 PAYEE_REGEXP2 ...
* Change an exception test to a plain ifJohn Wiegley2010-03-051-4/+2
|
* Updated copyrights to 2003-2010John Wiegley2010-03-05115-116/+116
|
* Renamed the "args" command to "query"John Wiegley2010-03-043-3/+7
|
* Some minor refactoring of the textual parserJohn Wiegley2010-02-053-176/+145
|
* Reformatted a commentJohn Wiegley2010-02-051-3/+2
|
* Added post_t::compare_by_date_and_sequence comparatorJohn Wiegley2010-02-051-0/+14
|
* Refactored some comparison helper classesJohn Wiegley2010-02-054-8/+9
|
* Added actual_date() methods for itemsJohn Wiegley2010-02-054-0/+22
|
* Added a "seq" sequence property for all itemsJohn Wiegley2010-02-043-20/+39
| | | | | This indicates the absolute parsing order of every transaction and posting. It is 0 for generated items.
* Improved the behavior of pivot reportsJohn Wiegley2010-02-041-12/+19
|
* Added a --pivot=TAG optionJohn Wiegley2010-02-024-6/+48
| | | | | | This is equivalent to the following: --account='"TAG:" + tag(/TAG/)'
* When creating temporary accounts, transfer flagsJohn Wiegley2010-02-021-1/+7
|
* Added a debug statement for report.predicateJohn Wiegley2010-02-021-2/+5
|
* Fixed assertion failure in -M -A bal reportJohn Wiegley2010-01-211-1/+1
|
* Guard against divide by zero error in -A reg reportJohn Wiegley2010-01-211-1/+1
|
* Fixed account display bug in the balance reportJohn Wiegley2010-01-211-5/+4
|
* Restore "-p this" option (aka -p 'this month')John Wiegley2010-01-211-11/+7
|
* Guard against using an uninitialized valueJohn Wiegley2010-01-181-1/+4
| | | | Fixes DDB54BB8-8C1C-4129-A137-07A38068F3BE
* Fix for date parsing when no year is givenJohn Wiegley2010-01-161-1/+1
|
* Cost of a post with neg. amount should be negativeJohn Wiegley2009-12-073-2/+8
|
* Allow relative includes in the current directoryJohn Wiegley2009-12-071-4/+10
|