Commit Graph

3621 Commits

Author SHA1 Message Date
Simon Michael
592ae9a28e timelog: show hours with 2 decimal places, not 1 2015-02-27 08:37:16 -08:00
Simon Michael
099a1de3b6 clarify built-in commodities rounding 2015-02-27 08:37:16 -08:00
Simon Michael
f83590021a web: workaround for json encoding of </script> (#236) 2015-02-26 08:57:24 -08:00
Simon Michael
d801eb1ab7 web: fix error message being a bit too persistent
visiting ?add=1 afresh was still showing the previous visit's error
2015-02-23 23:55:28 +00:00
Simon Michael
abe47e81c2 web: keep the add button right-aligned on ctrl - 2015-02-23 23:26:49 +00:00
Simon Michael
e76cc6ee47 web: stay in add form when there are errors 2015-02-23 23:22:02 +00:00
Simon Michael
8bde2fd212 web: use/show full file paths in add form (#234) 2015-02-20 09:31:13 +00:00
Simon Michael
9351f10b81 web: show all add form errors as form errors
Don't allow internal server errors during form validation.
2015-02-20 09:31:13 +00:00
Simon Michael
d3453c66c1 web: improve add form validation (#223, #234)
The add form is now partly using yesod-form.
2015-02-20 09:30:59 +00:00
Simon Michael
16aaf35c4b web: move old edit/import stuff out of AddForm 2015-02-16 18:20:31 +00:00
Simon Michael
55967e9192 web: Post -> AddForm; drop/comment more old stuff 2015-02-16 16:21:07 +00:00
Simon Michael
a1aff10225 web: comment unused handlers 2015-02-16 15:35:27 +00:00
Simon Michael
ebe0ee184c web: remove unused /journal/entries view 2015-02-16 15:03:48 +00:00
Simon Michael
7138acaec4 web: clarify some confusing parameter handling 2015-02-15 08:17:47 +00:00
Simon Michael
d2877a919a add some type signatures in Utils, helps ghci-web 2015-02-09 17:42:51 +00:00
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