John Wiegley
79c7478278
Fixes to the way annotated prices are displayed
2009-02-24 03:40:57 -04:00
John Wiegley
944c63e6f2
The Great Renaming, Part II
...
The last commit did not contain the majority of changes because of a
slight mishap. This contains the real changeset.
2009-02-23 19:07:30 -04:00
John Wiegley
25d62b63a2
Fixed bug: -- was not stopping option processing
2009-02-22 18:36:54 -04:00
John Wiegley
067f512e94
The --help (-h, -H) options now visit the man page
2009-02-21 16:24:10 -04:00
John Wiegley
f4e13f3458
Added --start-of-week option, used with --weekly
...
For example, --start-of-week=monday can be used to report weeks that
begin on Mondays.
2009-02-21 02:20:08 -04:00
John Wiegley
e05f29bff0
Don't use auto-widths for widths explicitly given
2009-02-20 15:41:48 -04:00
John Wiegley
c1b25fcf86
Rewrote the equity command, which is working again
...
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.
2009-02-20 02:53:54 -04:00
John Wiegley
9f963bda38
Auto-size register report based on COLUMNS
2009-02-19 14:44:28 -04:00
John Wiegley
39bdbbe053
The sequence -M -p 2004 now equals -p 2004 -M
2009-02-19 14:26:08 -04:00
John Wiegley
5e1870e259
Added --args-only flags, to ignore init and env
2009-02-16 16:57:32 -04:00
John Wiegley
780ce4a5d0
Normalized handling of several report options
2009-02-15 21:14:54 -04:00
John Wiegley
70344b82e7
Added a "reload" command, for use at the REPL
...
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.
2009-02-13 05:24:28 -04:00
John Wiegley
c8cd2c468e
Re-enabled some code, and removed a bunch of deadwood.
2009-02-12 03:30:41 -04:00
John Wiegley
6ca01af594
Fixed the use of --effective and --date-format (-y).
2009-02-09 17:27:54 -04:00
John Wiegley
3924a3da10
pyinterp.cc shares global session; accept full paths passed to --import.
2009-02-08 21:16:29 -04:00
John Wiegley
4f5799c216
If a ledger file is specified in .ledgerrc, ignore the environment.
2009-02-08 19:54:39 -04:00
John Wiegley
455b6e27cb
If LEDGER_FILE was seen, ignore LEDGER.
2009-02-08 19:54:16 -04:00
John Wiegley
59aefb5a3b
Inverted the default display mode for balance reports. Use -n to collapse
...
them, as this fits better with what -n does for register reports.
2009-02-08 05:18:46 -04:00
John Wiegley
589eabd8e6
Threw away the "multiple parser" infrastructure.
2009-02-07 17:45:48 -04:00
John Wiegley
ea9330adae
Allow value expressions to gain access to option settings.
...
For example, "ledger eval options.limit" prints 0 (for false), but:
"ledger -l hello eval options.limit" print "hello"s, since the value of
options.limit, once set to a value, is that string. For flag options,
such as -Y, eval prints 0 if unset, and 1 if set.
This feature allows value expressions to be conditionalized based on the
presence of user options.
2009-02-07 05:47:21 -04:00
John Wiegley
eb98e0da8b
More revision to the way options are handled; reworked CSV command.
2009-02-07 04:26:30 -04:00
John Wiegley
1b9e7fa7be
When in the REPL, consider each new command a new "command-line".
2009-02-06 23:39:04 -04:00
John Wiegley
fdc8e401bf
Don't push and pop reports unless at a REPL.
2009-02-06 23:38:51 -04:00
John Wiegley
cf6babcf90
Restored all the option handlers from 2.6.2, but not the options themselves.
2009-02-06 03:31:41 -04:00
John Wiegley
d853a58f5f
Moved --pager handler back into report_t.
2009-02-05 21:54:46 -04:00
John Wiegley
408b819c6e
Greatly simplified the way option and command handlers are defined.
2009-02-05 21:20:09 -04:00
John Wiegley
edb9cff4a2
Moved work.cc and global_scope_t into a new global.cc file.
2009-02-05 04:20:49 -04:00