hledger/hledger/Hledger/Cli
Simon Michael 372a2d768b register: use full width, column widths, cleanup
Refactored and enhanced the --width option used by register (and other
commands in future). register now uses the full terminal width by
default except on windows. Specifically, the output width is set from:

1. a --width option
2. or a COLUMNS environment variable (NB: not the same as a bash shell var)
3. or on POSIX (non-windows) systems, the current terminal width
4. or the default, 80 characters.

Also, register now accepts a description column width as part of
--width's argument, comma-separated (--width W,D). This adjusts the
relative widths of register's description and account columns, which are
normally about half of (W-40):

<--------------------------------- width (W) ---------------------------------->
date (10)  description (D)       account (W-41-D)     amount (12)   balance (12)
DDDDDDDDDD dddddddddddddddddddd  aaaaaaaaaaaaaaaaaaa  AAAAAAAAAAAA  AAAAAAAAAAAA

Examples:
$ hledger reg                 # use terminal width on posix
$ hledger reg -w 100          # width 100, equal description/account widths
$ hledger reg -w 100,40       # width 100, wider description
$ hledger reg -w $COLUMNS,100 # terminal width and set description width
2015-01-19 13:48:37 -08:00
..
Accounts.hs balance: ignore --drop when displaying in tree mode 2014-12-16 09:11:13 -08:00
Add.hs lib: add eof parsing checks 2015-01-11 09:45:55 -08:00
Balance.hs balance: fix partially-visible totals row 2014-12-27 16:46:37 -08:00
Balancesheet.hs balance: support CSV for multi-column balance reports 2014-10-23 05:11:48 -07:00
Cashflow.hs balance: support CSV for multi-column balance reports 2014-10-23 05:11:48 -07:00
Histogram.hs strip trailing whitespace from all Haskell files 2014-10-14 18:48:24 -07:00
Incomestatement.hs balance: support CSV for multi-column balance reports 2014-10-23 05:11:48 -07:00
Main.hs cli: add a hidden --version+ flag showing number representation (#118) 2014-10-18 12:35:58 -07:00
Options.hs register: use full width, column widths, cleanup 2015-01-19 13:48:37 -08:00
Print.hs balance: with --tree and --flat, use the last (fix #219) 2014-12-05 12:56:33 -08:00
Register.hs register: use full width, column widths, cleanup 2015-01-19 13:48:37 -08:00
Stats.hs lib: fix combineJournalUpdates folding order 2014-12-11 04:37:10 +01:00
Tests.hs move command-specific options to the respective command modules 2014-03-21 10:45:13 -07:00
Utils.hs account aliases (and regexReplace) now support backreferences 2014-10-29 07:46:49 -07:00
Version.hs cli: --version shows "dev build" when VERSION is undefined 2014-10-18 12:36:27 -07:00