Commit Graph

9773 Commits

Author SHA1 Message Date
Simon Michael
1c9a7f1bc4 doc: make hledger manuals show up in Info's directory
This continues the work begun by #1585. It moves each info manual's
directory metadata to the top of the file, where it needs to be.
I couldn't see a way to do this with pandoc/makeinfo, so the Shake
recipe prepends it from a separate file.

With this metadata in place, the hledger info manuals can be added to
an Info dir file using install-info. Eg:

$ install-info hledger/hledger.info /usr/local/share/info/dir
$ info

Secondly, the Shake "manuals"/"infomanuals" recipes now also generate
an Info dir file in each package directory, so you can also just add
the package directories to your INFOPATH. Eg:

$ export INFOPATH=~/src/hledger/hledger:~/src/hledger/hledger-ui:~/src/hledger/hledger-web:$INFOPATH
$ info
2021-06-27 17:01:59 -10:00
Damien Cassou
a9dd54d7b4 ;update manuals 2021-06-27 15:11:29 -10:00
Damien Cassou
f5633199dc ;doc: add DIR section to hledged.m4.md for the info file (#806)
This is used by `install-info` to generate an entry in the info
directory.
2021-06-27 15:11:29 -10:00
Simon Michael
fcebdfe0cc ;update manuals 2021-06-26 00:06:14 -10:00
Simon Michael
6a1bfe47ba ;doc: csv: rewrite, eliminate fifth-level headings (#1584)
The hledger manuals shall now use at most four levels of headings,
avoiding loss of structure when viewed in Info format.

CSV fields list, field assignemt, and field names section have
been expanded.

The individual field headings have been renamed ("X field") to avoid
clashing with "Transactions"'s subheadings. They can now be opened
directly in info mode, eg: hledger help 'amount field'
2021-06-26 00:06:05 -10:00
Simon Michael
fc364cd8cf ;doc: csv: note a limitation with datetimes in other zones 2021-06-25 14:22:44 -10:00
Simon Michael
59b1e46b88 ;check, payees, journal: payee directive no longer consumes trailing whitespace (#1580) 2021-06-23 14:13:24 -10:00
Simon Michael
46d3eaf920 ;lib: clarify/extend/refactor some line parsing helpers (#1580) 2021-06-23 14:12:17 -10:00
Simon Michael
424b883541 ;doc: declaring market prices: clarify based on chat feedback 2021-06-23 12:47:02 -10:00
Simon Michael
61a3fbc019 ;shake: note how paragraph refilling affects macro arguments (#806) 2021-06-17 09:43:40 -10:00
Simon Michael
e7f4619735 ;doc: use more obscure m4 flags to avoid clashes (#806) 2021-06-17 08:37:22 -10:00
crocket
5725fb8ab7 Improve editor support
Documentation for editFileAtPositionCommand is made more
precise.

This commit makes it possible for hledger-ui to open
a file at the last line on emacs and kakoune.

It also prevents hledger-ui from opening an editor with
imprecise arguments. Passing imprecise arguments to editors
can cause undefined behaviors in editors.

I tested it with emacs(client), nano, vscode, kakoune,
nvim, and vis.
2021-06-16 14:11:36 -10:00
Simon Michael
ba94582945 ;update manuals 2021-06-16 10:11:03 -10:00
Simon Michael
2cba15a97d doc: journal: fix account types regexps table rendering (#1573) 2021-06-16 10:09:15 -10:00
Simon Michael
f30cea32b9 ;make bench: fix on non-mac 2021-06-16 08:25:52 -10:00
Simon Michael
6df8b6d46e ;ui: editFileAtPositionCommand doc tweaks (#1572) 2021-06-15 17:37:00 -10:00
crocket
aa0a8d079b Add support for kakoune editor 2021-06-15 17:24:35 -10:00
Simon Michael
069e672a5c ;tools: update instructions for installing quickbench 2021-06-15 15:19:38 -10:00
Simon Michael
a4db52aa05 ;update manuals 2021-06-15 06:24:25 -10:00
Simon Michael
1e13588153 ;update CLI usage texts 2021-06-15 06:23:44 -10:00
Simon Michael
23369714e1 tools: drop obsolete site/ requirement (#1565) 2021-06-14 16:56:02 -10:00
Stephen Morgan
0df3a4714f lib: When performing a summary posting report without depth limiting,
report exclusive balances rather than inclusive balances (#1568).
2021-06-11 16:53:39 -10:00
Simon Michael
b114571d26 ;csv: amount-setting doc tweaks 2021-06-11 16:47:58 -10:00
Simon Michael
b81f8f768d ;csv: amount-setting notes, doc improvements from reddit discussion
https://www.reddit.com/r/plaintextaccounting/comments/nxu1ss/hledger_parsing_csv_with_negative_amount_in_debit/
2021-06-11 16:30:43 -10:00
Simon Michael
665fec83cd
Merge pull request #1560 from Xitian9/rationalisevaluation
Clean up valuation functions, and make clear which to use where.
2021-06-07 19:02:44 -10:00
Stephen Morgan
0f1837816d lib,cli,ui,web: Add check balancednoautoconversion command, which checks that
transactions are balanced possibly using explicit prices, but without
inferring any prices. This is included in --strict mode.

Renames check autobalanced to check balancedwithautoconversion.
2021-06-07 18:58:58 -10:00
Stephen Morgan
0a019e2167 lib,cli,web,bin: Replace journalSelectingAmountFromOpts with journalApplyValuationFromOpts.
This also has the effect of allowing valuation in more reports, for
example the transactionReport.
2021-06-08 14:55:05 +10:00
Stephen Morgan
68e975adf1 lib,cli,ui,web: Remove unused LANGUAGE pragmas. 2021-06-07 17:33:54 -10:00
Stephen Morgan
c87290e5f5 ui: Remove unnecessary CPP when dropping support for GHC 8.4. 2021-06-07 17:33:54 -10:00
Stephen Morgan
55308e1ca8 lib,cli,ui,web: Remove unnecessary CPP when dropping support for GHC 8.2. 2021-06-07 17:33:54 -10:00
Simon Michael
f156375ee7 Revert "balcmds: note that csv output forces list mode (#1566)"
This reverts commit 3f6d7ba580.
CSV output doesn't force list mode, it forces full account names.
2021-06-06 18:35:01 -10:00
Simon Michael
9d2d8ac24f ;balcmds: clarify tests a little for #1566 2021-06-06 18:34:58 -10:00
Simon Michael
3f6d7ba580 balcmds: note that csv output forces list mode (#1566) 2021-06-06 17:57:16 -10:00
Stephen Morgan
5a322c1908 cli: Make sure full account name is used (possibly including dropping)
for csv output. (#1566)
2021-06-06 17:56:34 -10:00
Stephen Morgan
c827cbcc3e lib: Refactor to eliminate use of printf. 2021-06-03 23:23:54 -10:00
Stephen Morgan
e80bb37b1c lib: Remove unused String utility functions. 2021-06-03 23:23:54 -10:00
Stephen Morgan
0b419adba2 lib: Remove unused Text utility functions. 2021-06-03 23:23:54 -10:00
Stephen Morgan
bf22c3efdd lib,cli: Replace concat(Top|Bottom)Padded with textConcat(Top|Bottom)Padded. 2021-06-03 23:23:54 -10:00
Stephen Morgan
56e87f934c ui: Use Text instead of String in RegisterScreen. 2021-06-03 23:23:54 -10:00
Stephen Morgan
0e59fee251 lib,cli: Export Text.Tabular from Text.Tabular.AsciiWide, clean up import lists. 2021-06-03 23:23:54 -10:00
Simon Michael
fc7df75f43 ;ci: no need for extra tags fetching (#1543)
fetch-depth: 0 also fetches tags.
2021-06-03 22:53:01 -10:00
Simon Michael
77be26514f ;ci: fix syntax (#1543) 2021-06-03 22:51:17 -10:00
Simon Michael
73de79d3d6 ;ci: fix syntax (#1543) 2021-06-03 22:49:39 -10:00
Simon Michael
d16cd267f9 ;ci: get all history to fix git describe/--version (#1543) 2021-06-03 22:47:56 -10:00
Simon Michael
eeb23c2e76 ;stack: drop 8.4 too 2021-06-03 14:11:28 -10:00
Simon Michael
b681cde62d ;update cabal files 2021-06-03 14:08:47 -10:00
Simon Michael
58b481ca5b stack: updated tested-with to 8.6+ 2021-06-03 14:07:39 -10:00
Simon Michael
d089f1b0d1 tools: ghc 8.6 is now the oldest, drop older stack configs 2021-06-03 14:05:02 -10:00
Stephen Morgan
bf063e4538 cli,ui,web: Display full git description in --version report if able.
Remove unused prognameanddetailedversion code branches.
2021-06-02 19:46:18 -10:00
Simon Michael
1e2ff1315b Don't infer a txn price with same-sign amounts (#1551) 2021-06-02 15:22:57 -10:00