Commit Graph

4188 Commits

Author SHA1 Message Date
Simon Michael
f6a7070167 ui: reg: document the balance/total column better 2015-10-29 17:15:13 -07:00
Simon Michael
76ab5df833 lib: credit pandoc for the charWidth function 2015-10-29 09:19:20 -07:00
Simon Michael
b48ee2d22e ui: types cleanup 2015-10-28 11:46:06 -07:00
Simon Michael
b950bd0d83 ui: reg: refactor, consolidate state 2015-10-28 11:30:56 -07:00
Simon Michael
45db0a28cc ui: acc: preserve account selection across reloads 2015-10-28 11:13:33 -07:00
Simon Michael
423934b2b8 ui: fixups 2015-10-28 10:27:14 -07:00
Simon Michael
2515025a84 ui: pressing g once now reloads all screens 2015-10-28 10:17:15 -07:00
Simon Michael
b527209e9f ui: err: tweak error message, make it red 2015-10-28 10:02:04 -07:00
Simon Michael
6f85e02f1a ui: show an error screen when reloading fails 2015-10-26 07:41:45 -07:00
Simon Michael
13b6d142c6 doc: add hledger-ui to combined user manual 2015-10-26 07:13:43 -07:00
Simon Michael
5a0c1b03f4 doc: stop symlinking changelogs to doc/ 2015-10-26 06:57:28 -07:00
Simon Michael
3762ae8f70 tools: pandoc filters used when making man pages 2015-10-26 06:56:33 -07:00
Simon Michael
844e04812c tools: simplify stack preamble in hakyll-std.hs
This doesn't yet quite install its deps when you run it from the
makefile, you may have to run the script directly to get the deps
(hakyll, pandoc) installed.
2015-10-26 06:54:29 -07:00
Simon Michael
4307d99895 tools: include dev.hs in tags 2015-10-26 06:54:07 -07:00
Simon Michael
e58cf86cfe tools: ignore profiling build object files 2015-10-26 06:53:38 -07:00
Simon Michael
1777c0a214 require nightly stackage snapshot for hledger-ui
vty and brick are not yet in the LTS snapshots.
We don't want to list them explicitly as extra-deps since that
can't be conditionalised for windows, which doesn't support them.
So, require a nightly snapshot which does include them.
A downside of this is that most people won't have this
particular snapshot installed. But with luck, stack will
reuse bits from their older snapshots and there won't be too much building.
2015-10-26 06:49:24 -07:00
Simon Michael
27b46e7b41 ui: allow vty 5.4 2015-10-26 06:47:36 -07:00
Simon Michael
cd5ff00a26 ui, web: man page updates 2015-10-26 06:46:29 -07:00
Simon Michael
60df129c7b doc: changelog updates, combined release notes 2015-10-26 06:37:33 -07:00
Simon Michael
6ae14b3f56 doc: update changelogs 2015-10-26 06:09:57 -07:00
Simon Michael
191c2e533f doc: generate man pages for each package (#282)
There are now six man pages, one for each main executable and file
format, generated from markdown by the mighty pandoc. They are basically
the content of the user manual, split up and moved into the appropriate
package directory.  I've also committed the generated man files.

The man pages' markdown source (hledger/hledger.1.md,
hledger-lib/hledger_journal.5.md etc.) are now the master documentation
files. The plan is to concatenate them (with a little munging) to form
the all-in-one user manual for the website, at release time.  This also
separates the hledger.org user manual from the latest doc commits, which
should simplify website management.
2015-10-20 06:26:09 -07:00
Simon Michael
77cf3a83da doc: lower-case hcar dir, part 2
in two parts to avoid any issues with git/osx
2015-10-19 08:56:21 -07:00
Simon Michael
2c170f63a6 doc: lower-case hcar dir, part 1
in two parts to avoid any issues with git/osx
2015-10-19 08:55:15 -07:00
Simon Michael
e2618210d2 doc: HCAR tweaks 2015-10-19 08:42:06 -07:00
Simon Michael
cbb076c224 doc: distinguish mockups from docs 2015-10-19 08:41:24 -07:00
Simon Michael
ef2dd9651d doc: a new HCAR entry 2015-10-18 16:09:23 -07:00
Simon Michael
bf532948f6 doc: clean up HCAR files 2015-10-18 14:50:14 -07:00
Simon Michael
d24b1b96f7 lib: parser cleanups 2015-10-17 12:09:03 -07:00
Simon Michael
bc43036117 lib: use consistent p suffix for parsers 2015-10-17 11:51:45 -07:00
Simon Michael
80ae8f5c50 latest dev script, testing parser performance 2015-10-17 11:23:55 -07:00
Simon Michael
78d5a0913e tools: dev-heap improvements 2015-10-17 11:23:39 -07:00
Simon Michael
b64f42c2d8 bal, ui: option help tweaks 2015-10-17 11:22:39 -07:00
Simon Michael
8214a6ccef dangit.. simplify combineJournalUpdates for real 2015-10-13 11:54:15 -07:00
Simon Michael
3be88ad6b5 simplify combineJournalUpdates
I really don't see why that extra x parameter is needed or works..
rewrite it in simpler form.

I also might be introducing breakage for older GHC's by using
unconditionally <$>, but I'm not seeing that for some reason
(tested back to ghc 7.6).
2015-10-13 11:49:51 -07:00
Simon Michael
7817cf9688 tools: functest now builds hledger if needed 2015-10-13 11:43:30 -07:00
Simon Michael
b3f5b7e7ca tools: rename dev-profile, add dev-heap rule 2015-10-13 10:31:43 -07:00
Simon Michael
56a79c479f cleanup 2015-10-12 07:02:36 -07:00
Simon Michael
2e38aec410 doc: link to dev sprint #2 2015-10-11 17:47:04 -07:00
Simon Michael
71921135f6 include P amounts in canonicalisation (fixes #131)
Since market price amounts didn't contribute to the canonical commodity
styles, they were being reset to the null style. And this propagated to
the reported amounts when -V was in effect, causing much confusion.
Now, market prices contribute to canonicalisation and the expected
styles are preserved even with -V.

cf https://github.com/simonmichael/hledger/issues/131#issuecomment-133545140
2015-10-11 16:07:31 -07:00
Simon Michael
7b8c992f5a register: auto-size amount columns, like hledger-ui 2015-10-10 18:20:40 -07:00
Simon Michael
eb75946e64 print: always right-align amounts
print now always right-aligns the amounts in an entry, even when they
are wider than 12 characters.

If there is a price, it's considered part of the amount for
right-alignment. Maybe it would be nicer to put amounts and prices in
separate columns ? That will get a little complicated, needs more
discussion/design.

Also some cleanup of postingAsLines.
2015-10-10 15:09:42 -07:00
Simon Michael
155722d7ee make strWidth aware of multi-line strings (#242) 2015-10-10 15:08:28 -07:00
Simon Michael
1d944ac1a9 doc: balance --format does not support - any more 2015-10-10 15:07:49 -07:00
Simon Michael
cbbe07e3c4 tests/nonascii -> tests/i18n 2015-10-10 13:11:31 -07:00
Simon Michael
bcc22a0367 ui: register: wide-char-aware layout 2015-10-10 12:26:17 -07:00
Simon Michael
3b40edba9c print: fix wide char support, add tests (#242)
The print command wasn't lining up amounts with wide chars in account
names, fixed it properly this time. Transaction and Posting's Show instances
should also be wide-char-aware now.
2015-10-10 11:53:28 -07:00
Simon Michael
e6d8a9d1bc tools: add sample journals with wide characters
generatejournal now has --chinese and --mixed options, which are used to
generate some additional small sample journals.
2015-10-10 11:51:07 -07:00
Simon Michael
939f7184c9 journal: make "end comment" optional, like ledger
The "comment" directive longer requires an "end comment", and will
extend to the end of the file(s) without it.
2015-10-07 16:41:49 -07:00
Simon Michael
a2f344f6d9 journal: require dates to begin with a digit 2015-10-04 08:41:01 -10:00
Simon Michael
aee8d2144b add file to package, really fix build error (#286) 2015-10-01 08:46:55 -10:00