Commit Graph

3606 Commits

Author SHA1 Message Date
Simon Michael
293c9b2efa doc: manual: Assertions and subaccounts 2015-01-26 09:54:22 -08:00
Simon Michael
a388d0e21d doc: small fixes 2015-01-26 09:54:18 -08:00
Simon Michael
1a4b30b8c1 doc: bring account alias docs up to date 2015-01-19 17:50:33 -08:00
Simon Michael
cbc0183160 doc: update register output docs 2015-01-19 15:28:04 -08:00
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
Simon Michael
8278c13268 cli: on POSIX systems, use terminfo (and curses)
When building hledger on a non-windows system, and the new "curses"
cabal flag is true (as it is by default), include the terminfo package.
This will be useful for detecting terminal width and perhaps other
things.

Installation on posix is slightly harder now, since it will need the C
curses dev libraries. The curses flag lets posix users skip that
requirement by adding -f-curses (or cabal might even do that
automatically).
2015-01-19 13:47:43 -08:00
Simon Michael
3d5b269b3d fix rendering of week 52 heading in weekly reports 2015-01-18 09:32:14 -08:00
Simon Michael
76db377468 document --output-format and --output-file (fix #233) 2015-01-16 16:52:59 -08:00
Julien Moutinho
af56ced3b0 lib: add eof parsing checks 2015-01-11 09:45:55 -08:00
Simon Michael
a575de9806 tools: makefile fix 2015-01-10 22:29:03 -08:00
Simon Michael
fabf8a743d changelogs 2015-01-10 22:28:36 -08:00
Simon Michael
257ce57383 fix balance accumulation across assertions (#195)
A sequence of balance assertions asserting first one commodity, then
another, then the first again, was not working.
2015-01-10 22:17:19 -08:00
Simon Michael
6543f44d82 doc: forgot add release date to changelogs 2015-01-10 17:03:44 -08:00
Simon Michael
72ba4f1f76 web: adding missing modules for cabal test (#232) 2015-01-10 16:51:47 -08:00
Simon Michael
a7b4b41bdf doc: git-tip is gratipay 2015-01-07 14:40:20 -08:00
Simon Michael
cf1345ba2e doc: manual: missing line break 2015-01-02 14:21:29 -08:00
Simon Michael
af1d1239f5 doc: download: tweaks, link to hledger-vagrant 2015-01-02 14:21:29 -08:00
Simon Michael
c5c721f1c1 doc: home: limit twitter height a little 2015-01-02 14:21:29 -08:00
Simon Michael
8a992042f5 doc: enable custom favicon 2015-01-02 14:21:29 -08:00
Simon Michael
60278062e6 doc: relnotes: tweaks 2015-01-02 14:21:29 -08:00
Simon Michael
3b2f611597 doc: more-docs: hacker news links 2015-01-02 14:21:29 -08:00
Simon Michael
eb1a1e5fc3 doc: faq: update the ledger answer, capitalise Ledger 2015-01-02 14:21:29 -08:00
Simon Michael
95ced2da80 balance: fix partially-visible totals row
With --no-total in a periodic (non-cumulative, non-historical) balance
report, hide the totals row completely, as in the other modes.
2014-12-27 16:46:37 -08:00
Simon Michael
6da4942633 balance: tweak flags a bit; we now use -N and -T
-N doesn't seem to be used by Ledger currently; we'll
use it as shortcut for --no-total.

-T is used by Ledger to set a custom value expression for the final
total. I'm going to take it as a shortcut for --row-total instead.
2014-12-27 15:34:23 -08:00
Simon Michael
ba0623165f balance: row totals/averages in multicolumn mode 2014-12-27 15:24:45 -08:00
Simon Michael
e794412a8f fix JournalReader ctx warning 2014-12-27 15:24:02 -08:00
Simon Michael
ec62644161 tools: a fix for make setversion 2014-12-27 14:41:28 -08:00
Simon Michael
9c68944c79 journal, csv: comment lines can also start with *
As in Ledger. This means you can embed emacs org/outline-mode nodes in
your journal file and manipulate it like an outline.
2014-12-27 14:41:28 -08:00
Simon Michael
a719cb8f6e bump version to 0.25-unreleased 2014-12-26 11:08:20 -08:00
Simon Michael
e77225038f bump version to 0.24 2014-12-25 11:42:39 -08:00
Simon Michael
044cf39eca web: update cabal source files list 2014-12-25 11:42:39 -08:00
Simon Michael
1e7d0ae120 doc: release notes 2014-12-25 11:31:39 -08:00
Simon Michael
4ce86a6edb doc: link issue numbers in release notes 2014-12-25 11:04:26 -08:00
Simon Michael
4cfec7043a doc: update changelogs 2014-12-25 11:04:26 -08:00
Simon Michael
62bad65e5b tighten up status: docs and behaviour a bit (fix #227)
A status: query term no longer accepts * as a synonym for 1,
which was a bit confusing since 1 matches both * and !.
For now, it takes a value of 1 (true) or anything else (false).
2014-12-24 23:48:23 -08:00
Simon Michael
c138c35d3b register: support date:/date2:/--date2 better (fix #201, #221, #222) 2014-12-24 16:11:30 -08:00
Simon Michael
0142482834 doc: wording tweak 2014-12-24 14:54:56 -08:00
Simon Michael
d1404adf3f note lack of date2 support in (eg) postingsReport 2014-12-24 14:54:56 -08:00
Simon Michael
6780c63ab3 simplify null Date2 queries too 2014-12-24 14:54:56 -08:00
Simon Michael
77c2c90290 cli: parse date2: correctly (#222) 2014-12-24 14:54:56 -08:00
Simon Michael
663e1f5ba9 tests for --date2, date2: (#201) 2014-12-23 06:23:23 -08:00
Simon Michael
03b8d2425c doc: describe hledger-web's change detection & limitation 2014-12-22 08:30:09 -08:00
Simon Michael
68a4adb0bd doc: draft changelogs for all three packages 2014-12-21 12:01:11 -08:00
Simon Michael
e14f39bae0 balance: ignore --drop when displaying in tree mode 2014-12-16 09:11:13 -08:00
Simon Michael
4a5d7154cd doc: home: move coins up 2014-12-12 16:42:17 -08:00
Simon Michael
4cf718048e doc: home: add coins art from djp, use it on home
Art contributed by David Patrick, licensed "however you like"
so I pick http://creativecommons.org/licenses/by-sa/4.0/.
2014-12-12 16:27:02 -08:00
Simon Michael
3fd43ba2c1 doc: home: wording, style tweaks 2014-12-12 16:23:25 -08:00
Simon Michael
ab19863e00 doc: download: tweak links 2014-12-12 16:22:32 -08:00
Simon Michael
5545ed3632 web: "sidebar" query parameter shows/hides sidebar 2014-12-11 12:13:31 -08:00
Simon Michael
632648ee38 doc: home: move getting started into a top panel 2014-12-11 11:45:01 -08:00