Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Reduced the #include dependency tree to a minimum | John Wiegley | 2009-03-04 | 1 | -5/+18 | |
| | ||||||
* | Normalized how account totals are calculated | John Wiegley | 2009-03-03 | 1 | -18/+4 | |
| | ||||||
* | Allow special %{} formatting sequence | John Wiegley | 2009-03-03 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | Although %(amount) inserts an item's amount, it only does exactly that. There is no special consideration like stripping of lot details, or reduction to the base commodity, etc. For those things, and to make sure it was display in red if negative, the canonical form would be: %(ansify_if(justify(scrub(amount), 12, -1, true), red if amount < 0)) You can now use the special %{} form as an alternate to this: %12{amount, red if amount < 0} The two expand to the same underlying expression. | |||||
* | Made all the ANSI color names into valexpr names | John Wiegley | 2009-03-03 | 1 | -0/+67 | |
| | ||||||
* | Moved fn_false to be a non-member function | John Wiegley | 2009-03-03 | 1 | -1/+4 | |
| | ||||||
* | Added a "null" value for value expressions | John Wiegley | 2009-03-03 | 1 | -0/+9 | |
| | ||||||
* | Added a "show" report query term | John Wiegley | 2009-03-02 | 1 | -3/+20 | |
| | | | | | Everything beyond the show modifies the --display predicate, and everything before modifies the --limit predicate. | |||||
* | Changed how comments are output to be more logical | John Wiegley | 2009-03-01 | 1 | -0/+2 | |
| | ||||||
* | The generate report now implies --actual | John Wiegley | 2009-02-27 | 1 | -0/+1 | |
| | ||||||
* | Allow --head to limit the entries generate creates | John Wiegley | 2009-02-27 | 1 | -1/+3 | |
| | ||||||
* | Added --lots-actual, to not print calc'd details | John Wiegley | 2009-02-27 | 1 | -1/+1 | |
| | ||||||
* | Added generate command, --seed, and GenerateTests | John Wiegley | 2009-02-27 | 1 | -0/+16 | |
| | ||||||
* | Fixed bugs relating to sign and rounding of costs | John Wiegley | 2009-02-27 | 1 | -0/+8 | |
| | ||||||
* | Added an --unround option, to show full precision | John Wiegley | 2009-02-27 | 1 | -0/+1 | |
| | ||||||
* | Changed the "truncate" valexpr func to "truncated" | John Wiegley | 2009-02-27 | 1 | -3/+3 | |
| | ||||||
* | Changed --exchange's short option from -x to -X | John Wiegley | 2009-02-25 | 1 | -3/+3 | |
| | ||||||
* | Added a new --depth option | John Wiegley | 2009-02-25 | 1 | -0/+1 | |
| | ||||||
* | Added a new level of Python integration | John Wiegley | 2009-02-24 | 1 | -0/+17 | |
| | ||||||
* | Removed the largely useless --performance option | John Wiegley | 2009-02-24 | 1 | -3/+1 | |
| | ||||||
* | The Great Renaming, Part II | John Wiegley | 2009-02-23 | 1 | -36/+33 | |
| | | | | | The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset. | |||||
* | rounded() and quantity() act on the first value | John Wiegley | 2009-02-23 | 1 | -3/+4 | |
| | ||||||
* | Added get_at and is_seq valexpr functions | John Wiegley | 2009-02-23 | 1 | -2/+36 | |
| | | | | These are for dealing with sequences. | |||||
* | Many fixes to both --market and --exchange | John Wiegley | 2009-02-23 | 1 | -3/+7 | |
| | ||||||
* | Many fixes to --market and --exchange | John Wiegley | 2009-02-22 | 1 | -7/+3 | |
| | | | | Also, --exchange now accepted multiple, comma-separated commodities. | |||||
* | --exchange option now accepts multiple commodities | John Wiegley | 2009-02-22 | 1 | -16/+28 | |
| | | | | They must be separated by a comma, and all whitespace is ignored. | |||||
* | Added --exchange (-x) option | John Wiegley | 2009-02-22 | 1 | -16/+18 | |
| | | | | | | | 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 | 1 | -9/+10 | |
| | ||||||
* | Changed --colors to --color, to match Git | John Wiegley | 2009-02-22 | 1 | -2/+2 | |
| | ||||||
* | Removed unused --totals option | John Wiegley | 2009-02-22 | 1 | -1/+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 | 1 | -2/+30 | |
| | | | | | | | | | 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 | |||||
* | Added a new --raw option, for use with print | John Wiegley | 2009-02-21 | 1 | -2/+2 | |
| | ||||||
* | Removed an unused class: format_entries | John Wiegley | 2009-02-21 | 1 | -1/+2 | |
| | ||||||
* | Use more general scrub valexpr function in formats | John Wiegley | 2009-02-21 | 1 | -1/+8 | |
| | ||||||
* | Create a new interactive_t helper class | John Wiegley | 2009-02-21 | 1 | -23/+21 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | Made --leeway a synonym for --price-exp | John Wiegley | 2009-02-21 | 1 | -0/+1 | |
| | ||||||
* | Added --start-of-week option, used with --weekly | John Wiegley | 2009-02-21 | 1 | -0/+1 | |
| | | | | | 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 | 1 | -1/+2 | |
| | ||||||
* | Added a new --exact option | John Wiegley | 2009-02-21 | 1 | -0/+1 | |
| | | | | | | | | | The purpose of this option is that usually when you do a --monthly periodic report, you see dates ranges from the first day of each month, to the last day. With --exact, the first day of each range will be the date of the first transaction found in that range, and likewise with the end of the range. Essentially it "contracts" the reported period dates to reflect the exact begin and end dates. | |||||
* | Restored --forecast, now also --forecast-while | John Wiegley | 2009-02-21 | 1 | -1/+1 | |
| | ||||||
* | Restored the --base option | John Wiegley | 2009-02-20 | 1 | -1/+5 | |
| | ||||||
* | Added more option baseline tests, enabled --dow | John Wiegley | 2009-02-20 | 1 | -1/+1 | |
| | ||||||
* | Removed unused --cache option | John Wiegley | 2009-02-20 | 1 | -2/+2 | |
| | ||||||
* | Restored the --basis option | John Wiegley | 2009-02-20 | 1 | -6/+18 | |
| | ||||||
* | Added --no-total option | John Wiegley | 2009-02-20 | 1 | -2/+3 | |
| | | | | This simply omits the final total in the balance report, nothing more. | |||||
* | Rewrote the equity command, which is working again | John Wiegley | 2009-02-20 | 1 | -27/+27 | |
| | | | | | | 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. | |||||
* | Allow for sorting of the balance report | John Wiegley | 2009-02-19 | 1 | -2/+2 | |
| | | | | | | Sorting is repeated at each level of the hierarchy, unless --flat was specified in which case it applies to the entire applicable accounts list. | |||||
* | Added a new --columns= option | John Wiegley | 2009-02-19 | 1 | -0/+1 | |
| | ||||||
* | The sequence -M -p 2004 now equals -p 2004 -M | John Wiegley | 2009-02-19 | 1 | -1/+1 | |
| | ||||||
* | Restored the -j and -J options | John Wiegley | 2009-02-19 | 1 | -0/+7 | |
| | ||||||
* | Moved init of options to the options themselves | John Wiegley | 2009-02-19 | 1 | -52/+0 | |
| |