Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Always free memory at the end of a run | John Wiegley | 2009-02-23 | 1 | -3/+0 |
| | | | | | It turns out this is needed in order to properly close the pager subprocess. | ||||
* | Restore the --gain option, for showing gain/loss | John Wiegley | 2009-02-23 | 1 | -1/+19 |
| | |||||
* | rounded() and quantity() act on the first value | John Wiegley | 2009-02-23 | 1 | -3/+4 |
| | |||||
* | If interactive_t wants S, also accept bare values | John Wiegley | 2009-02-23 | 1 | -1/+5 |
| | |||||
* | If handle_value sees a sequence, make it compound | John Wiegley | 2009-02-23 | 1 | -0/+1 |
| | |||||
* | Added --revalued-total option, used by --gain | John Wiegley | 2009-02-23 | 2 | -4/+18 |
| | | | | | This option sets the total by which revalued transactions are determined. Only needed if the display total is not appropriate. | ||||
* | Added get_at and is_seq valexpr functions | John Wiegley | 2009-02-23 | 2 | -2/+38 |
| | | | | These are for dealing with sequences. | ||||
* | Changed the constness of interactive_t::get<T> | John Wiegley | 2009-02-23 | 1 | -8/+22 |
| | |||||
* | Removed unused member keep_details_t::keep_base | John Wiegley | 2009-02-23 | 3 | -10/+6 |
| | |||||
* | Renamed O_COMMA to O_CONS, and changed semantics | John Wiegley | 2009-02-23 | 4 | -30/+52 |
| | | | | | | In the old scheme, nested values would simply flatten and concatenate, so that '((1, 2), 3) = (1, 2, 3)'. Now sublists are preserved, so that sequences may be passed as arguments to functions. | ||||
* | Allow sequences to be compared to 0 | John Wiegley | 2009-02-23 | 1 | -0/+40 |
| | | | | It is true if every member of the sequence passes the test. | ||||
* | Corrects to code that compares balances to zero | John Wiegley | 2009-02-23 | 1 | -12/+12 |
| | |||||
* | Don't report collapsed subtotal if no xacts seen | John Wiegley | 2009-02-23 | 1 | -1/+2 |
| | |||||
* | Expr (a,b)+(c,d) is now equivalent to (a+c,b+d) | John Wiegley | 2009-02-23 | 1 | -7/+17 |
| | |||||
* | A sequence is false if all it contains is false | John Wiegley | 2009-02-23 | 1 | -1/+7 |
| | |||||
* | Added non-const value_t::begin and value_t::end | John Wiegley | 2009-02-23 | 1 | -0/+12 |
| | |||||
* | Push a sequence onto a sequence only appends now | John Wiegley | 2009-02-23 | 1 | -8/+1 |
| | | | | Previously, it would merge sequences A and B. | ||||
* | Many fixes to both --market and --exchange | John Wiegley | 2009-02-23 | 9 | -61/+90 |
| | |||||
* | Many fixes to --market and --exchange | John Wiegley | 2009-02-22 | 6 | -151/+183 |
| | | | | Also, --exchange now accepted multiple, comma-separated commodities. | ||||
* | Allow date and datetime values to inter-convert | John Wiegley | 2009-02-22 | 1 | -0/+6 |
| | |||||
* | The entry command no longer inherits item state | John Wiegley | 2009-02-22 | 1 | -17/+1 |
| | |||||
* | Fixed bug: -- was not stopping option processing | John Wiegley | 2009-02-22 | 1 | -3/+5 |
| | |||||
* | Accept #ARG or "code ARG" as a report query term | John Wiegley | 2009-02-22 | 1 | -0/+8 |
| | |||||
* | --exchange option now accepts multiple commodities | John Wiegley | 2009-02-22 | 8 | -91/+43 |
| | | | | They must be separated by a comma, and all whitespace is ignored. | ||||
* | Renamed acconf.h to config.h, for included gettext | John Wiegley | 2009-02-22 | 1 | -1/+1 |
| | |||||
* | Correctly accept "false" as a keyword | John Wiegley | 2009-02-22 | 1 | -2/+2 |
| | |||||
* | Added --exchange (-x) option | John Wiegley | 2009-02-22 | 13 | -71/+115 |
| | | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD | ||||
* | Fixed the way values are justified for printing | John Wiegley | 2009-02-22 | 6 | -42/+54 |
| | |||||
* | Allow balances to be rounded and unrounded | John Wiegley | 2009-02-22 | 1 | -0/+4 |
| | |||||
* | Changed --colors to --color, to match Git | John Wiegley | 2009-02-22 | 2 | -13/+13 |
| | |||||
* | Restored the --invert option | John Wiegley | 2009-02-22 | 4 | -36/+4 |
| | |||||
* | Fix for systems that don't build with gettext | John Wiegley | 2009-02-22 | 2 | -1/+2 |
| | |||||
* | Removed unused --totals option | John Wiegley | 2009-02-22 | 2 | -3/+0 |
| | | | | This option was for outputting <total> elements in 2.x's XML output. | ||||
* | Added a new --colors option, for terminal fun | John Wiegley | 2009-02-21 | 2 | -19/+54 |
| | | | | | | | | | The following colors are applied in the balance and register reports: GREEN To a date, if it occurs in the future BOLD If a payee name relates to an uncleared entry BLUE For account names RED For negative values | ||||
* | Allow balance values to be compared < or > 0 | John Wiegley | 2009-02-21 | 1 | -0/+42 |
| | |||||
* | Fixed a bug with interactive_t's arg validation | John Wiegley | 2009-02-21 | 1 | -1/+1 |
| | |||||
* | Fixed an accumulator bug that was mangling errors | John Wiegley | 2009-02-21 | 1 | -1/+5 |
| | |||||
* | Added support for using GNU gettext | John Wiegley | 2009-02-21 | 2 | -0/+9 |
| | |||||
* | Use a "format accumulator" for error strings | John Wiegley | 2009-02-21 | 4 | -4/+185 |
| | | | | | | | | This makes it possible to internationalize strings while still using I/O streams. For example: std::cout << ACCUM(_("Hello to %1 and %2!") << "me" << "you") << std::endl; | ||||
* | Added a new --raw option, for use with print | John Wiegley | 2009-02-21 | 5 | -32/+62 |
| | |||||
* | Removed an unused class: format_entries | John Wiegley | 2009-02-21 | 4 | -60/+4 |
| | |||||
* | Use more general scrub valexpr function in formats | John Wiegley | 2009-02-21 | 2 | -42/+46 |
| | |||||
* | Create a new interactive_t helper class | John Wiegley | 2009-02-21 | 10 | -152/+365 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The purpose of this class is much like Emacs' (interactive) form: it allows a value expression function to declare exactly how many arguments, and of what type, it intends to receive. It then offers type-safe access to theese arguments in a consistent manner. An example value expression function definition in C++: value_t fn_foo(call_scope_t& scope) { // We expect a string, an integer, and an optional date interactive_t args(scope, "sl&d"); std::cout << "String = " << args.get<string>(0) << "Integer = " << args.get<long>(1) << std::endl; if (args.has(2)) // was a date provided? std::cout << "Date = " << args.get<date_t>(2) << std::endl; return NULL_VALUE; } There is also an in_context_t<T> template, which finds the context type T in the current scope hierarchy. The in_context_t then also acts as a smart pointer to reference this context object, in addition to serving the same duty as interactive_t. This combination of intent is solely for the sake of brevity. value_t fn_bar(call_scope_t& scope) { in_context_t<account_t> env(scope, "sl&d"); std::cout << "Account name = " << env->fullname() << "String arg = " << env.get<string>(0) << std::endl; return NULL_VALUE; } As you can see here, 'env' acts as a smart pointer to the required context, and an object to extract the typed arguments. | ||||
* | The --help (-h, -H) options now visit the man page | John Wiegley | 2009-02-21 | 6 | -271/+36 |
| | |||||
* | Made --leeway a synonym for --price-exp | John Wiegley | 2009-02-21 | 1 | -0/+1 |
| | |||||
* | Fixed another memory bug in by_payee_xacts | John Wiegley | 2009-02-21 | 3 | -20/+21 |
| | |||||
* | Fixed a memory leak in value_t::storage_t | John Wiegley | 2009-02-21 | 2 | -14/+18 |
| | |||||
* | Fixed the spelling of some option exceptions | John Wiegley | 2009-02-21 | 1 | -4/+4 |
| | |||||
* | Added --start-of-week option, used with --weekly | John Wiegley | 2009-02-21 | 3 | -0/+4 |
| | | | | | For example, --start-of-week=monday can be used to report weeks that begin on Mondays. | ||||
* | Handle reporting widths that are too small | John Wiegley | 2009-02-21 | 2 | -2/+3 |
| |