Commit Graph

13451 Commits

Author SHA1 Message Date
Simon Michael
cf198652f9 pkg:ui: allow brick 2.8 2025-02-15 15:22:33 -10:00
Simon Michael
35df9576ec doc:text encoding, csv encoding: cleanups [#2319] 2025-02-15 14:49:00 -10:00
Simon Michael
cdf6ce072d ;examples: test files for CSV encoding [#2319] 2025-02-15 14:48:30 -10:00
Joschua Kesper
5114962b2a feat:csv: add an encoding rule, allowing non-UTF8 CSV to be read [#2319]
Previously, hledger could read CSV files containing non-ascii
characters only if they are UTF8-encoded.  Now there is a new CSV
rule, encoding ENCODING, which allows reading CSV files with other
encodings.

This adds a dependency on the encoding library, which supports fewer
encodings than text-icu but does not require a third-party C library.
To avoid build issues on various platforms, we require version 0.10+.

This adds some use of the ImplicitParams language extension, required
by encoding's API, but only in a small code region.

This also changes the type of Reader's rReadFn; it now takes
a `Handle` rather than a `Text`, allowing more flexibility.
2025-02-15 14:48:30 -10:00
Simon Michael
d68a832d1c ;examples: some sample hledger run scripts 2025-02-13 16:21:14 -10:00
Dmitry Astapov
d84050ec05
feat:run: run multiple commands efficiently, as a script or at a REPL (Dmitry Astapov, #2323) 2025-02-13 16:13:07 -10:00
Dmitry Astapov
9597210556 script: balance-as-budget properly applies commodity styles now 2025-02-11 11:04:51 -10:00
Simon Michael
b12d7cb05b ;dev: fix Shake.hs typo 2025-02-11 08:26:53 -10:00
Simon Michael
fbbe897133 ;doc:hledger:cost/lot notations: cleanups 2025-02-06 12:16:10 -10:00
Simon Michael
0194ce3b42 ;doc:MOCKUPS: cleanup, move lot notes to Lot tracking page 2025-02-06 11:27:25 -10:00
Simon Michael
d435cf2ab4 ;doc:value reporting: edits 2025-02-05 10:38:13 -10:00
Simon Michael
3f1b6e6c8b ;doc:value reporting: edits 2025-02-05 10:35:23 -10:00
Simon Michael
27e51edbf4 ;doc:cost, value reporting: edits 2025-02-05 10:26:05 -10:00
Simon Michael
57efcfb79a ;bin: script-example: cleanup 2025-02-01 13:55:03 -10:00
Simon Michael
39f3b2c7ba ;dev: doc 2025-01-31 02:04:40 -10:00
Simon Michael
fdbf1b920f ;examples:csv: pooltool-rewards.csv.rule cleanup 2025-01-30 21:12:34 -10:00
Simon Michael
63b939a201 imp:print: --invert now also negates balance assertion/assignment amounts [#2314] 2025-01-29 09:47:29 -10:00
Simon Michael
bbb06209e7 lib: +postingNegate 2025-01-29 09:42:15 -10:00
Simon Michael
0dca0911f3 lib: negatePostingAmount -> postingNegateMainAmount 2025-01-29 09:41:51 -10:00
Simon Michael
3e838e4d0f imp:print: support --invert [#2314] 2025-01-27 05:21:36 -10:00
Simon Michael
aef59f8edd ;doc:FINANCE: funded projects 2025-01-27 05:20:03 -10:00
Simon Michael
d282d0b72b ;doc:FINANCE: better reports link 2025-01-25 23:58:38 -10:00
Simon Michael
1d32f0160c ;doc:FINANCE: edits 2025-01-25 23:53:40 -10:00
Simon Michael
f2df5ad72f ;doc:FINANCE: Funded projects 2025-01-25 23:35:03 -10:00
Simon Michael
dfc9c27c06 ;doc: finance cleanups 2025-01-25 22:11:45 -10:00
Simon Michael
2ee1cacf0a ;doc:FINANCE, REGRESSIONS: cleanup 2025-01-25 22:00:48 -10:00
Simon Michael
b3e50f5e59 fix:bal:html output: also suppress total heading when -H is active 2025-01-25 20:38:09 -10:00
Simon Michael
fdfd16387c ;tools: just time 2025-01-25 11:54:19 -10:00
Simon Michael
29885d15fa dev: refactor Hledger.Write.Html etc, reducing Lucid references
Clarify the HTML lib situation a bit, and clean up some imports.

Related: #2244
2025-01-25 11:53:51 -10:00
Simon Michael
14dd2c6200 dev: rename printHtml -> styledTableHtml 2025-01-25 11:53:51 -10:00
Dmitry Astapov
9d4db48510 ;roi: optimize "one period per report interval" case a bit 2025-01-21 23:42:36 -10:00
Simon Michael
a359d6b828 ;doc: Directive effects: fix account types link [#126] 2025-01-21 23:39:15 -10:00
Simon Michael
31370bb65d ;doc: update command docs 2025-01-21 23:22:34 -10:00
Simon Michael
4614300d6a ;fix:print: --help was indicating wrong --round default [#2318] 2025-01-21 23:15:15 -10:00
Simon Michael
5f3c3f3854 fix:ui:a key: don't pass cli query args to add [#2313] 2025-01-21 22:02:34 -10:00
Simon Michael
adef1a8416 lib: add dropRawOpt, cliOptsDropArgs 2025-01-21 22:02:05 -10:00
Simon Michael
54e7a178b3 ;doc:commodity styles: fix typo [hledger_site#123] 2025-01-21 21:36:25 -10:00
Simon Michael
58431b0cec ;imp:ui: allow brick 2.7 2025-01-21 21:36:25 -10:00
Simon Michael
91529191cd ;doc:cost/lot notations: clarify 2025-01-21 21:36:25 -10:00
Lars Kellogg-Stedman
d447d708f6 ;bin: git: make ensure_git more robust
Instead of manually checking for a .git directory, ask git to check whether
or not we are in a work tree using 'git rev-parse --is-inside-work-tree'.
This takes care of things like being in a subdirectory of a work tree, or
someone having GIT_DIR pointing somewhere other than .git, etc.
2025-01-21 21:29:33 -10:00
Simon Michael
51e7ebae3d ;doc:cost/lot notations: clarify 2025-01-21 15:57:00 -10:00
Simon Michael
06abca7304 ;doc:cost/lot notations: clarify 2025-01-21 15:54:04 -10:00
Simon Michael
8d886ef3f4 ;doc:cost/lot notations: clarify 2025-01-21 15:40:27 -10:00
Simon Michael
b7deaea12e ;doc:cost/lot notations: clarify 2025-01-21 15:32:47 -10:00
Simon Michael
0635fb91fa ;doc: bin, Scripts page: edits 2025-01-20 12:17:14 -10:00
Simon Michael
31c3c32872 ;doc: commodity directive: clarify slightly 2025-01-20 12:11:10 -10:00
Simon Michael
7ca1d1ac47 ;doc: bin, Scripts page: hledger-interest notes 2025-01-20 12:10:57 -10:00
Simon Michael
edfcd3554f lib: showAmountCost(B): drop leading whitespace 2025-01-15 16:28:43 -10:00
Simon Michael
e98af39e27 imp:pivot: support pivoting on amount (quantity) or cost 2025-01-15 13:47:04 -10:00
Simon Michael
e7e0b5c868 lib: Hledger.Data.Amount: showAmountCost 2025-01-15 13:22:03 -10:00