Commit Graph

3392 Commits

Author SHA1 Message Date
Simon Michael
90c824adaa ;doc:journal:transactions: typo 2024-02-29 15:34:48 -10:00
Simon Michael
86ba7cc3a3 ;doc:journal:amounts/commodities/numbers: cleanup 2024-02-29 15:31:44 -10:00
Simon Michael
62151d679e ;doc:journal: move intro before cheatsheet 2024-02-29 15:05:41 -10:00
Simon Michael
2ccbb16f07 ;doc:journal:transactions: explain transaction balancing (#2135) 2024-02-29 14:52:52 -10:00
Simon Michael
a6db6762ac ;doc:journal:transactions: edits; mention debits and credits and sign 2024-02-29 14:52:19 -10:00
Simon Michael
3ec432bd53 dev: rename/improve amountSetFullPrecisionUpTo, add mixedAmountSetFullPrecisionUpTo 2024-02-29 12:31:07 -10:00
Simon Michael
ce0990d1e2 ;cabal: update cabal files 2024-02-29 01:08:37 -10:00
Simon Michael
d755699c9b imp:stats: also show RTS memory usage stats 2024-02-29 01:07:04 -10:00
Simon Michael
8f1ae401f4 dev: fix some partial head/tails, silence ghc 9.8's new warnings
Note the headErr/tailErr calls will print stack traces if they fail
(small ones: five lines, one of which is the useful location info),
which may or may not be best UX.
2024-02-28 15:58:21 -10:00
Simon Michael
697e5a5671 ;cabal: update cabal files 2024-02-28 15:34:11 -10:00
Simon Michael
3798a3baef pkg: require safe >=0.3.20, for ghc 9.8 head/tail helpers 2024-02-28 14:39:53 -10:00
Simon Michael
fac3ee89af feat:allow other kinds of unicode space as digit group separators
Based on feedback in chat, I added support for several more kinds of
Unicode space character for separating digit groups, both when reading
and when displaying numbers. These are the spaces currently supported,
which are just my best guess at the ones that might show up in CSV files
now and then:

space,
no-break space,
en space,
em space,
punctuation space,
thin space,
narrow no-break space,
medium mathematical space
2024-02-28 09:12:17 -10:00
Simon Michael
eb0f736899 dev: update failing test 2024-02-28 09:11:49 -10:00
Simon Michael
6f7b8f8b55 ;doc:queries:combining multiple queries: edits 2024-02-26 11:05:05 -10:00
Simon Michael
2cfd051989 ;doc:csv:balance field: fix old "Tips" link 2024-02-26 11:04:32 -10:00
Simon Michael
37881b76fc ;doc:csv: drop outdated note about auto-creation of rules files 2024-02-26 10:25:50 -10:00
Simon Michael
a4c2776a18 feat:close: support --round, like print 2024-02-25 17:37:59 -10:00
Simon Michael
d3ad743b36 imp: print, close: disambiguate balance assertion/assignment amount also (#2176)
Add a trailing decimal mark when necessary to disambiguate a single
digit group mark in the balance assertion/assignment amount, also.
2024-02-25 16:47:58 -10:00
Simon Michael
a871f274c4 fix:bal:budget: don't omit necessary parent accounts in tree mode (#2071)
Parent accounts with no actual or goal amounts would ideally be shown
elided on the same line, but the budget report in tree mode was
omitting them completely. Now --budget always shows them.
The effect is much like forcing --no-elide on, except it might not
show goal amounts that --no-elide does show.

It's not a wonderful fix, but the budget report code is twisty and I
can't afford to spend more time on this.
2024-02-25 01:23:39 -10:00
Simon Michael
ffdde364de imp:bal:budget:csv,tsv output: show 0 not empty when there's no amount 2024-02-24 18:21:42 -10:00
Simon Michael
f82016cf63 dev:budget report:tests: fix numbering 2024-02-24 18:21:42 -10:00
Simon Michael
12f79f4fca ;doc:csv: combining matchers: clarify 2024-02-23 02:56:07 -10:00
Simon Michael
e53f25bf13 ;doc: add Text encoding section 2024-02-22 16:48:07 -10:00
Simon Michael
5a36362b33 imp:journal: use a symlink's target's directory for relative include paths
When reading a symbolically-linked journal file,
relative paths in include directives are now evaluated
relative to the directory of the real linked file,
not the directory of the symlink.

This also seems to fix an obscure case where stats did not report
absolute included file paths in certain circumstances (stdin, maybe no
terminal..)
2024-02-22 08:48:31 -10:00
Simon Michael
9523cb8e21 ;doc:Special tags: note type: as another one to avoid 2024-02-21 00:26:49 -10:00
Simon Michael
f70eac2591 imp:close: add --assertion-type option 2024-02-20 20:55:47 -10:00
Simon Michael
9f53e36904 ;imp: close: --assert: make default description "assert balances" 2024-02-20 20:55:27 -10:00
Simon Michael
9a6df91537 ;doc:journal:description/payee/note: edits 2024-02-18 15:03:25 -10:00
Simon Michael
85836eaa21 ;doc: update manuals 2024-02-18 14:59:10 -10:00
Simon Michael
3f6c400ddb ;doc:journal:description/payee/note: clarify 2024-02-18 14:57:41 -10:00
Simon Michael
f706bd2765 ;doc:Special tags: edits 2024-02-17 13:52:22 -10:00
Simon Michael
d65114f57a ;doc:Special tags: edits 2024-02-17 13:30:25 -10:00
Simon Michael
6103d74b4b doc:Tags: improve the Special tags list, and the tags doc generally 2024-02-17 13:06:10 -10:00
Simon Michael
baca5f8b54 fix:check:tags: add date and date2 to the implicitly-declared special tags
And add tests/comments.
2024-02-17 13:06:10 -10:00
Simon Michael
876bbf10a0 ;doc:journal:account directive: edits 2024-02-14 15:53:15 -10:00
Simon Michael
de8df9f861 ;doc: journal: account directive: edits 2024-02-14 15:45:16 -10:00
Simon Michael
a7cbef0f51 ;doc: journal: account display order: clarify 2024-02-14 15:03:28 -10:00
Simon Michael
d78a37eeda ;doc: journal: account display order: clarify 2024-02-14 14:19:38 -10:00
Simon Michael
f4a8823cf3 ;doc: journal: account display order: clarify 2024-02-14 14:11:44 -10:00
Simon Michael
2de3e6e2dc ;doc:Data formats: clarify a little [#2164] 2024-02-08 07:01:14 -10:00
Simon Michael
e9dd01a7db imp:close:--assert/--retain: no tag value; rename --assert's tag to assert: 2024-02-08 06:47:46 -10:00
Michael Rees
d4ecdb3fea imp: Support tsv and ssv prefixes (#2164) 2024-02-08 06:44:44 -10:00
Simon Michael
aa69eb188a ;doc: update changelogs 2024-01-28 02:34:54 -10:00
Simon Michael
13baabb880 ;doc: update command help 2024-01-26 22:49:21 -10:00
Simon Michael
32ef1e3dd9 ;doc: update manuals 2024-01-26 22:49:07 -10:00
Simon Michael
54c60b4de9 imp: balance assertions error: clarify wording 2024-01-23 22:18:34 -10:00
Simon Michael
e694e7869d fix: check mixed-cost balances correctly again; cleanup (#2150)
The code is a bit clearer, and it no longer discards amounts other
than the first when the running balance contains multiple costs.
(This bug was exposed by the fix for #2039).
2024-01-23 21:35:07 -10:00
Simon Michael
df79aa5e35 dev: distinguish oneLineFmt and oneLineNoCostFmt; add fullZeroFmt 2024-01-23 21:35:06 -10:00
Simon Michael
0cb382cf0e dev: rename AmountDisplayOpts -> AmountFormat, and related constants
noColour          -> defaultFmt
noCost            -> noCostFmt
oneLine           -> oneLineFmt
csvDisplay        -> machineFmt
2024-01-23 21:35:06 -10:00
Simon Michael
ca55c2f0f8 dev: rename other Price helpers to Cost
showAmountWithoutPrice             -> showAmountWithoutCost
mixedAmountStripPrices             -> mixedAmountStripCosts
showMixedAmountWithoutPrice        -> showMixedAmountWithoutCost
showMixedAmountOneLineWithoutPrice -> showMixedAmountOneLineWithoutCost
2024-01-23 21:35:06 -10:00