Simon Michael
b7deaea12e
;doc:cost/lot notations: clarify
2025-01-21 15:32:47 -10:00
Simon Michael
31c3c32872
;doc: commodity directive: clarify slightly
2025-01-20 12:11:10 -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
90415875f5
imp:pivot: support pivoting on commodity symbol; doc improvements
2025-01-15 12:46:09 -10:00
Simon Michael
0602b241d1
;dev:print: comment
2025-01-11 07:15:18 -10:00
Simon Michael
f3151e3880
;doc:close: mention the balance assertions
2025-01-10 01:19:56 -10:00
Simon Michael
87cc3e1393
imp:close: omit file extension from tag value
2025-01-09 21:26:53 -10:00
Simon Michael
bde97b8f28
;doc: update command docs
2025-01-09 21:19:44 -10:00
Simon Michael
6868ab06a4
imp:close: --migrate -> --clopen; more doc rewrites
2025-01-09 21:19:44 -10:00
Simon Michael
2588e31466
imp:close: change the start: tag to clopen:, and change --assign's tag to assign:
...
And some doc edits.
2025-01-09 15:32:25 -10:00
Simon Michael
5db62b37e1
fix:close: --infer-costs no longer implies -x/--explicit [ #1826 ]
2024-12-27 12:50:26 -10:00
Simon Michael
5644dc2493
;doc: pager: mention --pager=no
2024-12-27 12:08:44 -10:00
Simon Michael
d4d9caf328
;doc:Aliases and account types: better troubleshooting command
2024-12-22 09:44:51 -10:00
Simon Michael
eb9bb16faa
fix:add: account names provided on command line were being ignored [ #2305 ]
...
Fix suggested by Raphael (lowercasename)
2024-12-20 15:51:15 -10:00
Simon Michael
e71e8a8711
fix:bs/bse/cf/is: drop unsupported --budget option from help [ #2302 ]
2024-12-20 10:41:47 -10:00
Simon Michael
c2ae02adb6
;doc: update embedded manuals
2024-12-20 10:41:47 -10:00
Simon Michael
9de9fe7656
;doc: update command docs
2024-12-20 10:41:47 -10:00
Simon Michael
0a14b3a08c
fix:areg: drop inconsistent newline in options help
2024-12-20 10:41:46 -10:00
Simon Michael
512fa8cc8c
;doc:hledger: list rendering fix
2024-12-20 10:41:46 -10:00
Simon Michael
5b89f89ed0
;doc:beancount output: mention limitations: P and balance assignments
2024-12-20 08:46:19 -10:00
Dmitry Astapov
dde5a59049
roi: simplify/speed up (no longer checks every day with P directive)
2024-12-18 07:42:13 -10:00
Simon Michael
cbd5f42f8d
;doc: hledger: drop outdated change note [ #1846 ]
2024-12-09 19:02:34 -10:00
Simon Michael
eb8db39ed0
;doc: hledger changelog/relnotes: fix 2241 link
2024-12-09 18:54:34 -10:00
Simon Michael
3a47888534
;doc: Balance report output: drop outdated note about --tree and HTML [ #1846 ]
2024-12-09 18:54:08 -10:00
Simon Michael
ffc3440313
;doc: update embedded manuals
2024-12-09 17:58:30 -10:00
Simon Michael
f2cb3cd023
;cabal: update cabal files
2024-12-09 17:58:25 -10:00
Simon Michael
20f1f51a9d
;pkg: set version to 1.41.99
2024-12-09 17:58:24 -10:00
Simon Michael
58d461d5ee
;doc: changelogs: fix heading
2024-12-09 16:03:40 -10:00
Simon Michael
77a25b6423
;doc: merge 1.41 changelogs
2024-12-09 15:46:35 -10:00
Simon Michael
b663822b88
fix: print: ignore --depth entirely
...
Until now, a depth limit caused print to show only transactions referencing accounts as deep or deeper than that.
2024-12-09 15:37:30 -10:00
Simon Michael
b10c0f256c
;doc: common.m4: clean up, update generaloptions macro
2024-12-07 09:22:32 -10:00
Simon Michael
43dd0cfc5d
;dev: cleanups
2024-12-07 08:50:34 -10:00
Simon Michael
917f03b828
;doc: changelogs
2024-12-06 18:05:28 -10:00
Simon Michael
972a2a066b
;doc:beancount output: edits
2024-12-06 08:11:30 -10:00
Simon Michael
32182a05fc
;doc:beancount output: edits
2024-12-06 07:54:45 -10:00
Simon Michael
82fde8d2dc
;doc:query types: edits
2024-12-06 07:14:29 -10:00
Simon Michael
f148eec5fb
;doc:query types: edits
2024-12-06 07:13:03 -10:00
Simon Michael
85428d5cac
;doc:query types: updates, add headings, mention tag:'s infix matching
2024-12-06 07:04:05 -10:00
Simon Michael
f648903b37
imp:print:beancount: don't add account tags to postings
...
When print is generating beancount output, turn off the usual
inheritance of account tags by postings; it would generate excessive
metadata in the journal. Beancount can do or not do that kind of
inheritance itself.
2024-12-06 05:55:42 -10:00
Simon Michael
ff28aa329a
imp:print:beancount: convert tags to BC metadata
...
Transaction and posting tags (and posting tags inherited from accounts)
are now converted safely to Beancount-compatible transaction and posting
metadata lines.
2024-12-06 05:55:42 -10:00
Simon Michael
17332c75f9
imp:print:beancount: generate operating_currency directives from cost currencies
2024-12-06 05:55:42 -10:00
Simon Michael
f5e97e2f92
;doc:output:beancount: updates
2024-12-06 05:55:42 -10:00
Simon Michael
b4f4374dfa
imp:print:beancount: remove redundant conversion postings automatically
2024-12-06 05:55:42 -10:00
Simon Michael
d925c8a042
imp:print:beancount: add a second account name part if needed
...
Beancount requires account names to have at least two parts.
2024-12-06 05:55:42 -10:00
Simon Michael
6e3dfd6703
imp:print:beancount: remove virtual postings automatically
2024-12-06 05:55:42 -10:00
Simon Michael
29349458b3
imp:csv:if: go back to accepting unknown csv field names [ #2289 ]
...
It makes life easier when reusing common rules with different CSVs.
2024-12-04 17:45:28 -10:00
Simon Michael
9696677c5d
;doc: depth: note version
2024-12-04 10:33:23 -10:00
Simon Michael
595243ea18
;doc: LEDGER_FILE on Windows: copy improvements from hledger_site#119
2024-12-04 07:47:06 -10:00
Simon Michael
00beef6052
imp:csv:if: edits
2024-12-03 17:32:39 -10:00
Simon Michael
054a204aa0
imp:csv:if: support & ! (AND NOT)
2024-12-03 17:25:43 -10:00
Simon Michael
f73888d3b6
;doc:csv:if: edits
2024-12-03 16:41:54 -10:00
Simon Michael
3d55f260b3
imp:csv:if: warn on invalid csv field names; improve doc [ #2289 ]
2024-12-03 16:07:57 -10:00
Simon Michael
fd9c64a4ad
pkg: allow megaparsec 9.7 [stackage#7585]
2024-12-03 08:46:29 -10:00
Stephen Morgan
73fd60b2b0
;imp: doc: Document new regular expression limited depth.
2024-12-03 08:33:21 -10:00
Stephen Morgan
74f0f37fb3
imp: queries: Allow regular expression depth queries
...
Previously depth-limiting was universal across all accounts, e.g. all
accounts are clipped to depth 2. However, sometimes you want certain
accounts clipped to a different depth than others, e.g. all expenses to
depth 3, while all assets to depth 2. This commit enables depth-limiting
to optionally include a regular expression, which limits the accounts it
applies to.
More than one depth limit can be passed, and they are applied to each
account name by the following rules:
- If one or more regular-expression depth limit applies, use the
most specific one
- If no regular-expression depth limits apply, and a flat depth limit is
supplied, use that
- Otherwise, do not do any depth limiting
For example, this will clip all accounts matching "assets" to depth 3,
all accounts matching "expenses" to depth 2, and all other accounts to
depth 1.
--depth assets=3 --depth expenses=2 --depth 1
2024-12-03 08:33:21 -10:00
Simon Michael
f345c6c8d9
;doc:import: more edits
2024-12-01 11:22:10 -10:00
Simon Michael
d16efeb26a
;doc:import: edit
2024-11-30 09:25:02 -08:00
Simon Michael
f414c37195
;doc:import: first import tips
2024-11-30 06:57:13 -08:00
Simon Michael
812a7e28d7
;doc:import: updates
2024-11-29 16:18:58 -08:00
Simon Michael
ff649114a7
;doc:import: updates
2024-11-29 16:03:08 -08:00
Simon Michael
3d0aec7e8b
;doc:import: rewrite; date skipping -> overlap detection
2024-11-29 15:45:19 -08:00
Simon Michael
a38c09be98
;doc: assertions: mention their behaviour with posting status
2024-11-21 07:57:26 -10:00
Simon Michael
21d8044bcf
;doc:journal: rewrite the Tags section
2024-11-16 14:40:03 -10:00
Simon Michael
1ad9fbb4a8
imp:print: clean up special tags; show them more often with --verbose-tags
...
- These special hidden tags, used internally, have been renamed:
- `_modified` -> `_modified-transaction`
- `_cost-matched` -> `_cost-posting`
- `_conversion-matched` -> `_conversion-posting`
- All special hidden tags now have a similarly-named visible tag,
and `--verbose-tags` now shows those more often, which is useful
when troubleshooting `--infer-equity`, `--infer-costs`,
or the matching of redundant costs and conversion postings.
- The `generated-posting:` tag added by `--infer-equity` is now valueless.
- The `modified-transaction:` tag added by `--auto` now appears on its own line.
2024-11-16 14:40:03 -10:00
Simon Michael
f57cd638da
imp:print:beancount output: more robust account/commodity encoding
...
Unsupported chars are now hex-encoded, not just converted to dashes.
This helps keep account and commodity names unique, especially with
the equity conversion account names generated by --infer-equity when
using currency symbols.
(Those could also be converted to ISO 4217 codes, in theory, but
for now we just hex encode them, which is easier to make robust.)
Also, Beancount commodity symbols are no longer enclosed in
hledger-style double quotes.
2024-11-07 01:28:31 -10:00
Simon Michael
1078c176bf
;doc: pager: link to less FAQ
...
Signed-off-by: Simon Michael <simon@joyful.com>
2024-11-07 01:24:21 -10:00
Dmitry Astapov
c006959b05
lib: fix division by zero in roi when all assets are sold ( fixes #2281 )
2024-11-06 17:56:36 -10:00
Henning Thielemann
d176215f03
cli: Commands.Aregister: --header -> --heading
2024-11-06 16:38:38 -10:00
Simon Michael
660bbbb1f4
dev: update errors/README
2024-11-02 18:11:08 -10:00
Simon Michael
326acbf93b
imp: check recentassertions: try to make the error message clearer
2024-11-02 18:10:53 -10:00
Simon Michael
4d38c63ec8
dev: move/rename nullsourcepos
2024-11-02 14:59:43 -10:00
Simon Michael
657fc1551f
!fix: respect --color=yes in a few places that didn't; drop text-ansi dep
...
Hledger.Utils.IO's ansi style/color helpers now respect --color=yes,
so that eg `hledger --color=yes | less -R` shows bold headings as
you'd expect.
Hledger.Utils.IO.rgb' now takes Float arguments instead of Word8.
2024-11-01 10:40:25 -10:00
Simon Michael
66953ae0be
;doc: pager: note that help -p TOPIC uses less
2024-11-01 08:15:09 -10:00
Simon Michael
234b4879c2
imp: less pager will use HLEDGER_LESS instead, if defined
...
When using `less` as pager, if HLEDGER_LESS is defined, it will
provide the options (instead of LESS + hledger's extra options).
You can set your own preferred options here, or you can set it
equal to LESS to use exactly those options.
[#2272 ]-related
2024-11-01 08:02:03 -10:00
Simon Michael
30086ae249
imp: run pager more robustly; drop pager lib [ #2272 ]
...
This fixes the error displayed when quitting the pager with long output.
It also replaces the pager lib with more robust homegrown pager utilities,
which should prevent a number of failure modes.
2024-10-31 18:55:09 -10:00
Simon Michael
659e493b30
;doc: update changelogs
2024-10-30 19:01:49 -10:00
Simon Michael
50bf401ea6
dev: split debug/ghcdebug flags, comment out the latter for now
...
Compilation with ghc-debug is failing, and it has not yet been used
for anything. Separate the flag and leave it in place but commented for now.
2024-10-24 10:44:28 -10:00
Simon Michael
f96df24a00
;doc: regular expressions: note possible RTL/bidi limitation
2024-10-24 10:44:28 -10:00
Henning Thielemann
e43168533f
cli: Commands.Aregister: replace option --no-header by --header=YN
2024-10-23 21:55:24 -10:00
Henning Thielemann
1a9bfcf5be
cli: Commands.Aregister: implement --invert option
2024-10-23 21:55:24 -10:00
Henning Thielemann
fa3676df7d
doc: Commands.Aregister: motivate --no-header option
2024-10-22 12:05:42 -10:00
Henning Thielemann
93d32a934b
doc: Commands.Aregister: mention --cumulative option
2024-10-22 12:05:42 -10:00
Henning Thielemann
8a56c4944c
cli: Commands.Aregister: new option --no-header
2024-10-22 12:05:42 -10:00
Henning Thielemann
3714ac0593
lib: Write.Ods.printFods: change type of number of fixed rows/columns from (Maybe Int) to Int
...
0 is a perfect value for no fixed row or column.
2024-10-22 12:05:42 -10:00
Henning Thielemann
b2aad52168
cli: Commands.Aregister: support option --cumulative
2024-10-22 12:05:42 -10:00
Simon Michael
95ef5fad9a
;doc: update manuals
2024-10-20 09:26:32 -10:00
Simon Michael
0f7242182e
;doc: update help
2024-10-20 09:26:08 -10:00
Simon Michael
d985e89bad
imp: default V accounts become just E when a new V account is declared
...
The equity:conversion account, and its variations equity:trade(s) and equity:trading,
normally detected as V/Conversion type, now become ordinary E/Equity accounts
if some other account is declared as V/Conversion type.
This is motivated by the next commit, in which `check accounts` will
stop warning about conversion accounts and their subaccounts,
which means all of the above names and their subaccounts would remain
always exempt from strict account checking.
Now, if the user declares their own conversion account, those default
accounts will become controllable by account checking again.
Which at least reduces the allowlist a bit.
Hopefully this won't cause hassles.
2024-10-20 09:13:58 -10:00
Simon Michael
e44cbbf1a4
dev: refactor, clarify detection of cost/conversion postings
2024-10-20 09:13:58 -10:00
Henning Thielemann
f1ded22c97
cli: Commands.Register: rename parameter base -> baseUrl
2024-10-20 08:49:36 -10:00
Henning Thielemann
84a6e167fb
doc: hledger.m4: add FODS to aregister in output format matrix
2024-10-20 08:49:36 -10:00
Henning Thielemann
067c5e4db6
cli: Commands.Aregister.htmlRow: replace by call to generic accountTransactionsReportItemAsRecord
2024-10-20 08:49:36 -10:00
Henning Thielemann
4c189dde32
lib: Write.Spreadsheet.integerCell: for transaction indices
2024-10-20 08:49:36 -10:00
Henning Thielemann
7dc3715865
cli: Commands.Aregister: add export to FODS
...
use common Spreadsheet framework for CSV export, too
2024-10-20 08:49:36 -10:00
Simon Michael
7ad71ba2d5
;doc: paging, box-drawing characters: updates
2024-10-20 08:46:11 -10:00
Simon Michael
f348bb642c
;cli:help: make --pager's help more accurate
...
--pager's "yes" doesn't unconditionally force it on; it behaves more
like --color's "auto". But yes/no is easier to read and understand,
so keep that and just tweak the wording.
2024-10-20 08:18:41 -10:00
Simon Michael
f8cc9cdb4d
;dev: document runPager's behaviour precisely
2024-10-20 08:10:07 -10:00
Simon Michael
5bf48d721a
cabal: update cabal files
2024-10-19 18:50:40 -10:00
Simon Michael
7325b75d5b
imp: rename ghcdebug build flag to debug, and enable stack traces with it
...
Builds made with ghc 9.10+ and the 'debug' build flag, will show
(some kind of, partial) stack traces when the program ends with an
error. (And also will have ghc-debug support enabled.)
The stack traces will probably improve in due course.
2024-10-19 18:47:03 -10:00
Simon Michael
b6a5687a38
imp: cli, web: disable ghc 9.10+'s stack traces here too
...
Starting to see them also from hledger now.
2024-10-19 18:33:58 -10:00
Simon Michael
fd4fa512e6
;doc: update manuals
2024-10-19 17:06:10 -10:00
Simon Michael
d2344c119d
;doc: update help
2024-10-19 17:06:06 -10:00
Simon Michael
6893f342af
imp: cli,ui,web: begin controlling GHC 9.10+'s stack traces
2024-10-19 16:56:14 -10:00
Simon Michael
a925e73b53
imp:cli: handle -NUM in config file properly
2024-10-19 16:56:14 -10:00
Simon Michael
576417655c
dev: fix stray empty strings in builtinCommandNames
2024-10-19 16:56:14 -10:00
Henning Thielemann
3306abfd43
doc: hledger.m4: add HTML+FODS to print in output format matrix
2024-10-19 16:52:54 -10:00
Henning Thielemann
cc58ac7bf5
cli: Commands.Print.transactionToSpreadsheet: vertically merge common index, date, description and other cells
2024-10-19 16:52:54 -10:00
Henning Thielemann
8b391e2a07
cli: Commands.Print: add export to FODS and HTML
...
use common Spreadsheet framework for CSV export, too
2024-10-19 16:52:54 -10:00
Henning Thielemann
6773bf0974
cli: Commands.Register: add HTML and FODS to outputFormatFlag
2024-10-19 16:49:24 -10:00
Henning Thielemann
e144ad4ccd
cli: Cli.Commands.Balance: give table names according to report type
2024-10-19 16:49:24 -10:00
Henning Thielemann
0c536da5ff
doc: hledger.m4.md: FODS output - describe the advantages over CSV
2024-10-19 16:49:24 -10:00
Henning Thielemann
4fe51cb911
doc: hledger.m4.md: add FODS to all CompoundBalance commands in output format matrix
2024-10-19 16:49:24 -10:00
Simon Michael
b940254025
imp:cli: detect --color more safely in most cases
...
--color now also works in a config file, like --pager, except for two
cases: it does not affect colouring of debug output, or the colouring
helpers used in the check recentassertions error message.
2024-10-19 16:28:36 -10:00
Simon Michael
711d921774
imp:cli: --no-pager -> --pager, make this and --color safe options
2024-10-19 16:28:36 -10:00
Simon Michael
7fee69d7ab
imp:cli: deprecate always/never --color values (though still support)
2024-10-19 16:28:36 -10:00
Simon Michael
9317354f20
doc: note issues with --color, --debug in config files
2024-10-19 16:28:36 -10:00
Simon Michael
66df5ed40f
imp: expose config file args to getArgs; make --no-pager work there
2024-10-19 16:28:36 -10:00
Simon Michael
18dceef1ce
imp:cli: move --no-pager/--color to the help flags, available everywhere
2024-10-19 16:28:36 -10:00
Simon Michael
ba786752d1
imp 📟 add a --no-pager general flag
2024-10-19 16:28:36 -10:00
Simon Michael
db748465a8
fix 📟 when the $PAGER is not in PATH, print instead of failing
2024-10-19 16:28:36 -10:00
Simon Michael
4441680d7b
fix:lib:Hledger.Utils.IO.pager: avoid a crash; avoid an extra newline
2024-10-19 16:28:36 -10:00
Simon Michael
3b7420b97c
feat: use a pager for all large terminal output, not just for help
2024-10-19 16:28:36 -10:00
Henning Thielemann
a758eb0b5a
doc: hledger.m4: add HTML+FODS to register in output format matrix
2024-10-18 00:07:11 -10:00
Henning Thielemann
86c3d7d656
cli: Commands.Register: support hyperlinks to hledger-web in HTML and FODS output
...
new option --base-url as in `balance` et.al.
Cli.Anchor: new module initialized with functions from Commands.Balance
2024-10-18 00:07:11 -10:00
Henning Thielemann
96e0500ea7
cli: Commands.Register.postingsReportItemAsRecord: format transaction index as integer
...
lib: Write.Spreadsheet.Type: new TypeInteger
2024-10-18 00:07:11 -10:00
Henning Thielemann
b23753f5ae
cli: Commands.Register.postingsReportItemAsRecord: export amounts as number plus commodity
...
lib: Write.Spreadsheet.cellFromMixedAmount, cellsFromMixedAmount: taken from Cli.Balance
2024-10-18 00:07:11 -10:00
Henning Thielemann
991c56caef
cli: Commands.Register.postingsReportAsSpreadsheet: generalize CSV output to HTML and FODS
2024-10-18 00:07:11 -10:00
Simon Michael
121b648bdb
;doc: output: edits
2024-10-17 20:18:02 -10:00
Simon Michael
4cf064e526
;doc: text output: fix formatting, 2
2024-10-17 19:50:35 -10:00
Simon Michael
12cc571441
;doc: text output: fix formatting
2024-10-17 19:47:14 -10:00
Simon Michael
7cbe75c523
;doc: output format: updates, consolidate terminal topics
2024-10-17 19:30:02 -10:00
Simon Michael
733fec604b
;doc: text output: expand
2024-10-17 18:25:10 -10:00
Simon Michael
0f7aaa9600
imp: check accounts: simplify confusing suggestion in error message, 2
2024-10-16 21:19:51 -10:00
Simon Michael
d82c860f0d
;doc: special characters: edit
2024-10-16 18:39:06 -10:00
Simon Michael
7793ffe17d
;doc: special characters: edit
2024-10-16 18:14:16 -10:00
Simon Michael
e91be9e799
;doc: special characters: more edits, more precision
2024-10-16 18:12:24 -10:00
Simon Michael
8683d5feb2
;doc: special characters: edits
2024-10-16 16:23:45 -10:00
Simon Michael
0dbcafdebb
;doc: special characters: updates
2024-10-16 16:03:20 -10:00
Simon Michael
391bd6fac9
;doc: special characters: clarify windows differences
2024-10-16 15:01:57 -10:00
Simon Michael
1fa8b79640
;doc: update manuals
2024-10-15 16:36:54 -10:00
Simon Michael
b1677e8b2c
;doc: update help
2024-10-15 16:36:54 -10:00
Simon Michael
6bd5012b9b
;doc: changelogs
2024-10-15 16:36:54 -10:00
Henning Thielemann
49f1af04ef
cli: CompoundBalance.compoundBalanceReportAsSpreadsheet: somehow support layout tidy
...
However, it is not quite correct since it contains totals and net values.
2024-10-15 14:13:53 -10:00
Henning Thielemann
270360a103
cli: Commands.Balance: hide total rows for all output formats for layout=tidy
2024-10-15 14:13:53 -10:00
Henning Thielemann
fa58dc11f4
cli: Commands.Balance: remove lambda on ropts1 for balanceReport*
...
This is consistent with the calls to multiBalanceReport* and budgetReport*.
2024-10-15 14:13:53 -10:00
Henning Thielemann
9d1ba5c588
cli: CompoundBalanceCommand.compoundBalanceReportAsSpreadsheet: common function for CSV, HTML, FODS export
2024-10-14 20:59:51 -10:00
Simon Michael
71a7879213
fix:check tags: _price-matched -> _cost-matched, and whitelisted [ #2247 ]
2024-10-14 14:49:18 -10:00
Henning Thielemann
b8497c830e
lib: Write.Spreadsheet.headerCell, addRowSpanHeader, rawTableContent: taken from Commands.Balance
2024-10-14 11:35:12 -10:00
Henning Thielemann
b8570c2aa0
cli: Commands.Balance.headerCell: do not automatically add a bottom border anymore
...
addHeaderBorders: do it explicitly
2024-10-14 11:35:12 -10:00
Henning Thielemann
dce24ea08f
cli: Commands.Balance: remove some trailing spaces and unnecessary parentheses
2024-10-14 11:35:12 -10:00
Henning Thielemann
4d88b47aa7
cli: CompoundBalanceCommand: use List.foldl' with qualification
...
no need for import guarded by CPP
2024-10-14 11:35:12 -10:00
Henning Thielemann
746c927cee
cli: Cli.CompoundBalanceCommand.compoundBalanceReportAsHtml.headerrow: collect all column headers
...
colspanattr: count those headers
This way, we can assert that colspanattr covers all columns.
2024-10-14 11:35:12 -10:00
Henning Thielemann
2122444c4b
cli: Cli.Commands.Balance.multiBalanceReportAsSpreadsheetParts: parameter ishtml::Bool -> fmt::AmountFormat
...
arguments machineFmt, oneLineNoCostFmt are more descriptive than False, True
2024-10-14 11:35:12 -10:00
Henning Thielemann
2fd2110f3d
cli: Cli.Commands.Balance.multiBalanceReportHtmlRows: removed
...
export multiBalanceReportAsSpreadsheetParts for use in compoundBalanceReportAsHtml
2024-10-14 11:35:12 -10:00
Simon Michael
7ac154e0b8
dev: cli: fix recent command parsing breakage; more tests
2024-10-14 09:12:59 -10:00
Simon Michael
b71634a4ee
dev: notes, debug output tweaks
2024-10-14 09:12:59 -10:00
Simon Michael
c6bc020609
fix:cli: don't ignore first cli arg when there's a conf command arg
2024-10-12 21:33:06 -10:00
Simon Michael
b04a0e4e79
;doc: config files: edit
2024-10-12 14:38:56 -10:00
Simon Michael
1228444d3e
;doc: config files: rewrite, clearer warning
2024-10-12 14:21:36 -10:00
Simon Michael
d2feaf6f97
imp: cli: a little less flag-moving debug output
2024-10-12 13:35:15 -10:00
Simon Michael
e2599e85a4
fix:cli: order of last flag could be lost, disrupting --no-conf eg
...
Move pre-command flags more carefully, including the last one,
so that the relative order of options is preserved.
(This caused --conf foo --no-conf to sometimes ignore the --no-conf.)
Debug output has also been improved.
2024-10-12 13:23:49 -10:00
Simon Michael
21e27a0283
imp: avoid ugly GHC 9.10.1 stack trace with nonexistent --conf file
2024-10-12 12:14:21 -10:00
Simon Michael
2db4b8ed56
imp: cli: improve debug output for finding config file
2024-10-12 11:28:13 -10:00
Simon Michael
46897cd30b
imp: cli: config files can now provide the command name
...
If the first thing in a config file's general section is a non-flag
argument, that will be used as the command name argument,
taking precedence over any command line arguments.
2024-10-12 10:38:35 -10:00
Simon Michael
a928ed994b
dev: cli: command line processing clarifications
2024-10-12 08:03:07 -10:00
Simon Michael
490ea3ccf1
;doc:output:beancount: mention operating_currency
2024-10-11 16:30:05 -10:00
Simon Michael
aff3cd0591
imp:print:beancount: more robust conversion of commodity names
2024-10-11 14:56:03 -10:00
Dmitry Astapov
92f022dee4
;lib: export budgetReportAs* functions (to use in scripts)
2024-10-11 14:55:35 -10:00
Simon Michael
66fce53c0b
dev: extract beancount output helpers to Hledger.Write.Beancount
2024-10-10 23:25:07 -10:00
Simon Michael
a6a1b2c28e
dev:bal: multiperiod balance now has two hledger.css links, fix
2024-10-10 22:00:27 -10:00
Henning Thielemann
6b5a158935
cli: CompoundBalanceCommand: row_total_ -> multiBalanceHasTotalsColumn (bugfix)
...
This way, total column header is not shown in balancesheet.
This is consistent with table data and with compoundBalanceReportAsText.
2024-10-09 08:52:28 -10:00
Simon Michael
4285efc013
;doc: beancount output: edits
2024-10-08 23:11:57 -10:00
Simon Michael
21a84fb336
fix: calculate value correctly when P amounts have few decimal digits [ #2254 ]
...
Valuation in another commoditay could sometimes be inaccurate if the P
price amounts did not have enough decimal places.
2024-10-08 23:11:57 -10:00
Simon Michael
4e6f6611a6
dev: fix DisplayName's off-by-one indent value, noted in #2246
...
Now displayIndent (and prrIndent) 0 means no indent, 1 means one
indent step, etc.
2024-10-08 23:11:57 -10:00
Simon Michael
05fd8e1d69
dev: refactor
2024-10-08 23:11:57 -10:00
Simon Michael
6ce5e85e99
dev: clarify: rename displayDepth/prrDepth to displayIndent/prrIndent
...
These are about indentation for rendering, not account depth;
these are not always directly related, eg when boring parents are elided.
2024-10-08 23:11:57 -10:00
Henning Thielemann
75ad734edf
test: balance: adapt to newly implemented tree mode
2024-10-08 23:07:07 -10:00
Henning Thielemann
ccc605a6a0
cli: Cli.Commands.Balance.renderBalanceAcct: respect that depth is zero-based here (bugfix)
...
The depth in BalanceReportItem is zero-based,
whereas prrDepth in PeriodicReportRow DisplayName is one-based.
2024-10-08 23:07:07 -10:00
Henning Thielemann
6b0cca4fa8
cli: Cli.Commands.Balance.budgetReportAsSpreadsheet: support for tree mode
...
use renderPeriodicAcct
2024-10-08 23:07:07 -10:00
Henning Thielemann
e21a8e6d76
cli: Cli.Commands.Balance: use normal space for indentation in text output format
2024-10-08 23:07:07 -10:00
Henning Thielemann
3e2685fe95
cli: Cli.Commands.Balance: support tree mode for HTML, CSV and FODS output
...
indentation using non-breakable space character
2024-10-08 23:07:07 -10:00
Bas van Dijk
f8daba5e98
dev: remove the dead link: hledger/embeddedfiles/hledger-journal.md
2024-10-05 15:08:02 -10:00
Simon Michael
27c7b7489d
;doc: beancount output: discuss commodity names
2024-10-04 12:46:47 -10:00
Simon Michael
a248cc5bc8
;doc: beancount output doc/conf file updates
2024-10-03 23:35:36 -10:00
Simon Michael
79bc5852eb
;doc: output formats: expand, document beancount export and FODS
2024-10-03 22:57:59 -10:00
Simon Michael
b9426616f7
;doc: bal: improve --layout doc
2024-10-03 22:57:59 -10:00
Simon Michael
c50de03fd0
;doc: note --infer-equity requires account declarations for check accounts
...
As reported on mail list.
2024-10-03 05:39:14 -10:00
Simon Michael
f54805a034
;doc: update changelogs
2024-10-03 04:47:50 -10:00
Henning Thielemann
eeb070195c
cli: Cli.Commands.Balance.multiBalanceReportAsHtml: now uses multiBalanceReportAsSpreadsheet
...
instead of multiBalanceReportHtmlRows.
This way, HTML output automatically supports transposition.
2024-10-02 17:32:57 -10:00
Henning Thielemann
afc320f1ba
cli: Cli.Commands.Balance.multiBalanceReportAsSpreadsheetHelper -> multiBalanceReportAsSpreadsheetParts
2024-10-02 17:32:57 -10:00
Henning Thielemann
bb5e64c75f
cli: Cli.Commands.Balance.budgetReportAsSpreadsheet: vertically merge duplicate account name cells
...
This is consistent with simple balance and multi-period balance reports.
2024-10-02 17:30:39 -10:00
Henning Thielemann
41397d0ca4
cli: compoundBalanceReportAsHtml - add class=account to Net row header
2024-10-02 17:29:05 -10:00
Simon Michael
fd930ff567
dev: make func tests compatible with ghc 9.10
...
Work around ghc 9.10's extra newline in error output.
https://gitlab.haskell.org/ghc/ghc/-/issues/25116
2024-09-30 17:20:53 -10:00
Simon Michael
bb551bf0dc
;doc: update changelogs
2024-09-30 17:20:13 -10:00
Simon Michael
c92b601028
dev: fix warnings with ghc 9.10 / base 4.20
...
Older ghc versions should also still build cleanly (tested with 9.8 so far).
I don't like enabling CPP in so many modules but it's easier that
figuring out how to do it with base-compat; hopefully no noticeable
compilation impact.
2024-09-30 17:20:13 -10:00
Simon Michael
1b60ebb61f
;cabal: update cabal files
2024-09-30 17:20:13 -10:00
Simon Michael
6225ac8a22
imp!: support ghc 9.10 / base 4.20
...
When built with ghc 9.10.1, hledger error messages are displayed
with an extra newline following them.
https://gitlab.haskell.org/ghc/ghc/-/issues/25116
2024-09-30 17:15:59 -10:00
Simon Michael
12481804cd
;doc: bal: tree mode html limitation, edit [ #1846 ]
2024-09-29 22:20:33 -10:00
Simon Michael
944e27b342
;doc: update manuals
2024-09-29 22:13:31 -10:00
Simon Michael
b17f6730d8
imp: areg: html output uses a hledger.css file if any, like balcmds
2024-09-29 22:12:57 -10:00
Simon Michael
4ef1db3725
;doc: bal: note that tree mode doesn't work in html output [ #1846 ]
2024-09-29 22:00:28 -10:00
Simon Michael
2d55a0e6aa
;doc: bal: also mention hledger.css and text encoding in balance doc
2024-09-29 21:47:13 -10:00
Simon Michael
c2800afeeb
;doc: html: note safari text encoding issue, 2
2024-09-29 21:30:52 -10:00
Simon Michael
e905a8de9e
;doc: html: note safari text encoding issue
2024-09-29 21:27:26 -10:00
Simon Michael
cc7ba473ec
imp: bal: html output will use a hledger.css file, like bs/cf/is
2024-09-29 21:22:38 -10:00
Henning Thielemann
5565f11c73
cli: Commands.Balance.multiBalanceReportAsSpreadsheetHelper: vertically merge cells showing account names and Total
...
lib: Write.Spreadsheet: add support for cell spans
2024-09-29 19:25:05 -10:00
Henning Thielemann
2f9a8031b0
lib: Write.Html -> Write.Html.Lucid
...
Write.Html: keep common definitions for both HTML backends
2024-09-29 13:27:51 -10:00
Henning Thielemann
d8fc30f7c5
lib: Write.Html.Attribute.tableStyle: style definitions taken from Commands.Balance.multiBalanceReportAsHtml
...
avoid duplicate with Write.Html.printHtml
Write.Html.Attribute: remove dependency on Lucid
2024-09-29 13:27:51 -10:00
Simon Michael
a494e15d55
;doc: update manuals
2024-09-29 12:13:50 -10:00
Simon Michael
d88e30ff43
;doc: update help
2024-09-29 12:13:30 -10:00
Simon Michael
52402cd084
imp: bal: tweak --related, --transpose help
2024-09-29 12:12:15 -10:00
Simon Michael
e9a3f99553
imp: balcmds: support --count on all of them, why not
2024-09-29 12:12:15 -10:00
Simon Michael
40b8d2b517
imp: balcmds: tweak --base-url help [ #2226 ]
2024-09-29 12:12:15 -10:00
Simon Michael
c8710958a6
imp: cli: more consistent options order between bal cmds
2024-09-29 11:39:23 -10:00
Simon Michael
5a4e5dc099
;doc: bal: simplify hyperlinks doc a little [ #2226 ]
...
I think this will be enough.
2024-09-29 11:31:04 -10:00
Henning Thielemann
e116b6af41
cli: Commands.Balance.composeAnchor: construct an anchor from Maybe base-url and query
...
Optionally add a missing trailing slash to the base URL.
2024-09-29 11:12:17 -10:00
Simon Michael
2a25bfdebc
dev: fix typo in bal --base-url help [ #2226 ]
2024-09-28 22:21:58 -10:00
Henning Thielemann
9cdd21bf6d
cli: Commands.Balance.registerQueryUrl: correctly escape URL using modern-uri package
2024-09-28 22:12:51 -10:00
Henning Thielemann
3cd6e95746
doc: Commands/Balance.md: document hyperlinks and --base-url
2024-09-28 22:12:51 -10:00
Henning Thielemann
6e7324a36e
cli: Command.Balance: pass command-line query to HTML and FODS hyperlinks
2024-09-28 22:12:51 -10:00
Henning Thielemann
cc86cd1f0e
cli: Commands.Balance.multiBalanceReportAsSpreadsheet: add date query anchors to period headers
2024-09-28 22:12:51 -10:00
Henning Thielemann
499c626e48
lib: Write.Spreadsheet: support for anchors in HTML and FODS export
...
cli: Commands.Balance: new option --base-url
It adds hledger-web-compatible hyperlinks to account names.
2024-09-28 22:12:51 -10:00
Henning Thielemann
8744a0687c
cli: CompoundBalanceCommand: use Html.Attribute.alignleft
2024-09-28 22:07:39 -10:00
Simon Michael
823be7c565
fix: csv: tags on following lines, and posting dates, also work now [ #2241 ]
...
Follow-on work from #2214 .
2024-09-28 18:54:43 -10:00
Simon Michael
eb9e4aa9b6
;doc: demo: link asciinema
2024-09-27 01:30:53 -10:00
Simon Michael
15e3733d55
;doc: commands: tweak wording
2024-09-27 01:27:48 -10:00
Henning Thielemann
6ce6c72fd4
lib: Write.Html.Attributes: extracted HTML output helpers from Cli.Commands.Balance
2024-09-24 22:51:30 -10:00
Simon Michael
c73744938e
;doc: timedot: mention the common journal+timedot file setup [ #2238 ]
2024-09-24 21:32:26 -10:00
Henning Thielemann
144098e407
cli: CompoundBalanceCommand.compoundBalanceReportAsHtml: create according TH cells only if row-total or average is requested
...
fixed bug #2225
2024-09-18 12:17:00 -07:00
Bas van Dijk
fb47073c91
fix: amount formatting of the Net row in the balancesheet HTML output
...
The "Net" row in the HTML output of balancesheet formatted amounts using machineFmt which is inconsistent with all the other amounts in the balance sheet. This fixes that by formatting Net amounts using oneLineNoCostFmt.
2024-09-18 10:08:19 -07:00
Simon Michael
5ea99c1a26
;doc: shell-completion/README: start documenting packaging status [ #986 ]
2024-09-17 11:30:10 -07:00
Simon Michael
f76307bcdb
;doc: shell-completion/README: packager notes [ #986 ]
2024-09-17 11:25:52 -07:00
Simon Michael
2a054a3cc8
;doc: shell-completion/README: update [ #986 ]
2024-09-17 10:54:57 -07:00
Simon Michael
9589941bb4
;doc: update changelogs
2024-09-17 07:20:27 -07:00
Simon Michael
ff0fe62fac
;doc: cli, ui, web: mention/link to shell completions
2024-09-17 06:39:23 -07:00
Simon Michael
e2a824eff2
fix: shell-completion: update these for hledger 1.40
2024-09-14 17:30:29 -07:00
Simon Michael
2b80910a59
;dev: shell-completion: fix/update commands list parsing
2024-09-14 17:30:29 -07:00
Simon Michael
e330ec9424
;dev: cli: doc cleanups
2024-09-13 12:33:16 -07:00
Simon Michael
6f10818544
;doc: config files: shebang line examples
2024-09-13 12:29:59 -07:00
Simon Michael
a0303824ae
;doc: config files: mention command argument limitation [ #2231 ]
2024-09-13 12:21:44 -07:00
Simon Michael
d2793dfd3a
;dev: cleanup: fix Balance.hs typo
2024-09-11 14:01:53 -07:00
Simon Michael
0b95ff0aa5
;dev: cleanup: drop obscure todo comment [ #2222 ]
2024-09-11 14:00:28 -07:00
Henning Thielemann
fdc3e674a5
cli: Commands.Balance.multiBalanceReportAsSpreadsheetHelper: return header separately
2024-09-11 13:51:09 -07:00
Henning Thielemann
5a7d0687d5
cli: Commands.Balance.multiBalanceRowAsTextBuilders, multiBalanceReportAsCsvHelper: helper functions removed
2024-09-11 13:51:09 -07:00
Henning Thielemann
ff397f79cc
lib: Write.Spreadsheet.Cell: add cellClass field for HTML style class
...
cmd: Commands.Balance.multiBalanceRowAsCellBuilders: add HTML style class attributes here
This way we do not need to dissect table rows in
multiBalanceReportHtmlHeadRow, multiBalanceReportHtmlBodyRow, multiBalanceReportHtmlFootRow
Eventually removed these three functions.
2024-09-11 13:51:09 -07:00
Henning Thielemann
2fcf793221
cli: Commands.Cli.Balance.rawTableContent: helper function for extracting CSV from Spreadsheet cells
2024-09-11 13:51:09 -07:00
Henning Thielemann
df9531a6b7
cli: Commands.Balance.balanceReportAsSpreadsheet, multiBalanceReportAsSpreadsheet: support for transposition
2024-09-11 13:51:09 -07:00
Henning Thielemann
55c1246598
cli: Commands.Balance.budgetReportAsSpreadsheet: also transpose border
2024-09-11 13:51:09 -07:00
Henning Thielemann
2ed13afed4
lib: Write.Spreadsheet: support for borders like in existing HTML export
...
cli: Commands.Balance: use for FODS export and balance and budget export to HTML
2024-09-11 13:51:09 -07:00
Simon Michael
e1a8b9c62f
;doc: cli changelog: cleanup
2024-09-09 15:07:18 -07:00
Simon Michael
30aeb662f2
doc: update manuals
2024-09-09 14:09:28 -07:00
Simon Michael
91db5ef5d1
;doc: update help
2024-09-09 14:07:07 -07:00
Simon Michael
27e6eb0024
;cabal: update cabal files
2024-09-09 14:06:06 -07:00
Simon Michael
c079725836
;pkg: bump version to 1.40.99
2024-09-09 14:06:06 -07:00
Simon Michael
a505ffd3bf
;doc: update help
2024-09-09 14:04:43 -07:00
Simon Michael
5cbbdb4670
imp: reg --sort: show supported keys in help and error message [ #2211 ]
2024-09-09 14:04:43 -07:00
Simon Michael
3b73360584
;doc: update changelogs
2024-09-09 14:04:43 -07:00
Simon Michael
979c387663
;doc: changelogs: 1.40
2024-09-09 14:04:08 -07:00
Simon Michael
105670edad
;doc: Config files: rewrite
2024-09-09 14:04:02 -07:00
Simon Michael
30b58272b8
;dev: cleanup [ #2218 ]
2024-09-09 11:04:26 -07:00
Michael Rees
52253c01f6
Add absamount as --sort field for register
2024-09-05 11:56:07 +01:00
Michael Rees
d96e3a1e5a
;Include desc/description field in help text for --sort
2024-09-05 11:56:07 +01:00
Michael Rees
693360344c
Add desc/description as possible sort field
2024-09-05 11:56:07 +01:00
Michael Rees
74db7f688c
Document register --sort in Register.md
2024-09-05 11:56:07 +01:00
Michael Rees
4b564966c9
Improve register --sort help message
2024-09-05 11:56:07 +01:00
Michael Rees
b4a9f87fe4
Move SortSpec to Hledger.Reports.ReportOptions
...
As part of this migration, I also switched from using Data.List.splitOn
to Hledger.Utils.splitAtElement.
2024-09-05 11:56:07 +01:00
Michael Rees
00eb0aa16b
feat: register: add --sort as in ledger
2024-09-05 11:56:07 +01:00
Simon Michael
c24c09337c
;doc: whitespace
2024-09-04 16:26:41 +01:00
Henning Thielemann
57b2d02760
cli: Commands.Balance.budgetReportAsSpreadsheetHelper: no longer needed
2024-09-04 16:15:19 +01:00
Henning Thielemann
2d59bc8591
cli: Commands.Balance.budgetReportAsCsv, budgetReportAsSpreadsheet: remove duplicate transposition
2024-09-04 16:15:19 +01:00
Simon Michael
038ebd8c7a
fix: three more interval start date cases; add tests; cleanup [ #2218 ]
2024-09-04 16:07:54 +01:00
Simon Michael
c8b6ca7b70
fix: 'every Nth day of month from DATE' start date [ #2218 ]
2024-09-04 16:07:54 +01:00
Simon Michael
7fe6de02cf
;doc: date adjustments, period headings: rewrite, clarify [ #2218 ]
2024-09-04 16:07:54 +01:00
Simon Michael
375fb07ede
;dev: cleanups
2024-08-29 10:07:02 +01:00
Simon Michael
6355134592
;doc: input: clarify multiple -f options allowed
2024-08-29 10:07:02 +01:00
Henning Thielemann
fdc007d446
doc: hledger.m4.md: new column for FODS
...
balance support for HTML export is now complete
2024-08-16 16:57:38 +02:00
Henning Thielemann
70e556998f
cli: Command.Balance.budgetReportAsSpreadsheet: support for budget export to HTML and FODS
2024-08-16 16:57:38 +02:00
Henning Thielemann
3af8eb3bc6
cli: Command.Balance: use Date format for dates in LayoutTidy
2024-08-16 16:57:38 +02:00
Henning Thielemann
da61b64f94
cli: Command.Balance: support FODS export for multibalance
...
Data.Amount.showMixedAmountLinesPartsB: new helper function
2024-08-16 16:57:38 +02:00
Henning Thielemann
66a047aade
lib: Write.Spreadsheet.Cell: add type parameter for the text type
...
instance Functor Cell
This way you can choose between Text, Lazy.Text, WideBuilder for cell content.
2024-08-16 16:57:38 +02:00
Henning Thielemann
f306df6d61
imp: lib: Write.Html: use Lucid to generate HTML
2024-08-16 16:57:38 +02:00
Henning Thielemann
48723c930c
cli: Cli.Balance.balanceReportAsCvs: now based on balanceReportAsSpreadsheet
...
This warrants consistency of ODS, HTML and CSV export.
2024-08-16 16:57:38 +02:00
Henning Thielemann
37be769540
doc: Commands/Balance.md: mention FODS export format
2024-08-16 16:57:38 +02:00
Henning Thielemann
8c42a735c2
cli: lib: Write.Spreadsheet: common data types for Write.Ods and Write.Html
...
Write.Html: write spreadsheet data to a HTML table
enables HTML export for the balance command
2024-08-16 16:57:38 +02:00
Henning Thielemann
29b67691fb
cli: Write.Ods: also use a number cell if the total amount has a single commodity
2024-08-16 16:57:38 +02:00
Henning Thielemann
ba0db5feec
cli: Write.Ods: write single amounts as numbers with units
...
This way you can do computations with the numbers in LibreOffice Calc.
2024-08-16 16:57:38 +02:00
Henning Thielemann
7b136600fa
cli: Cli.Balance.balanceReportAsFods: use distinguished cell formatting styles
2024-08-16 16:57:38 +02:00
Henning Thielemann
0e158d0c3e
cli: lib: Hledger.Write.Ods: basic support for FODS export
...
used in Commands.Balance
2024-08-16 16:57:38 +02:00
Henning Thielemann
14b5a1f82a
imp: Hledger.Read.CsvUtils -> Write.Csv
2024-08-16 16:57:38 +02:00
Simon Michael
397a464aeb
;doc: bin readme/Scripts and add-ons: rewrites, list add-ons again
2024-08-12 11:00:54 +01:00
Simon Michael
b99c4f75d2
;doc: timeclock: edits
2024-08-06 18:19:33 +01:00
Simon Michael
ee629b98ce
;doc: timeclock: fix layout
2024-08-06 18:14:56 +01:00
Simon Michael
2fbd81df2d
;doc: timeclock: fix ti/to scripts
2024-08-06 18:13:27 +01:00
Simon Michael
d19b353bfb
imp: improve bad regexp error message
...
Eg '(?:foo)' is not malformed, it's just not supported.
https://hledger.org/hledger.html#hledgers-regular-expressions
2024-07-24 11:06:13 +01:00
Simon Michael
165e70df7a
imp: bs,cf,is: show interval in report title
...
This makes the report interval clearer, eg when it's set unexpectedly
by a config file.
2024-07-17 08:26:43 +01:00
Simon Michael
0e5708729f
;doc: date adjustments: edits
2024-07-16 22:45:31 +01:00
Simon Michael
776ad26b55
;doc: date adjustment: rewrite, fix description of end date adjustment
2024-07-16 22:30:35 +01:00
Simon Michael
a1c6a409bc
;dev: clean up dates, intervals func tests
2024-07-16 22:12:51 +01:00
Simon Michael
4b3abfd470
;imp: check: recentassertions: improve message readability
2024-07-16 22:12:41 +01:00
Simon Michael
4b4d35fb80
;doc: cli: fix another hledger and Ledger link [hledger_site#112]
2024-07-15 09:55:48 +01:00
Simon Michael
8bb4831053
;doc: cli: Journal: fix hledger and Ledger link [hledger_site#112]
2024-07-15 09:42:40 +01:00
Simon Michael
f25b9ee4ae
imp: conf: rightmost of --conf/--no-conf options wins
2024-07-14 12:43:17 +01:00
Simon Michael
6f3c4c9bf0
fix: cli: accept --conf with no command
2024-07-12 15:41:53 +01:00
Simon Michael
85480a7572
fix: cli: move pre-command --debug option more carefully; cleanup
2024-07-12 15:23:03 +01:00
Simon Michael
e3c414fe59
;dev: cli: clarify that conf debug output goes to console
2024-07-12 13:29:14 +01:00
Simon Michael
dcf0249c8c
;fix: add help: D does not cause it to add the symbol
2024-07-10 21:43:17 +01:00
Simon Michael
cdc6987e76
imp: cli: demote some debug output
2024-07-06 17:12:08 +01:00
Simon Michael
65ac41e155
fix: cli: move flags with shadowed names, like -p, more carefully
2024-07-06 17:12:08 +01:00
Simon Michael
17e292eddd
;doc: config file: updates
2024-07-06 10:36:50 +01:00
Simon Michael
2303147fa4
imp: files: support conf flags (and other hidden flags)
2024-07-01 23:06:14 +01:00
Simon Michael
b33d2a8f91
imp: conf: fail if --conf file is bad; improve debug output; refactor
2024-07-01 23:06:14 +01:00
Simon Michael
b54a31d585
imp: conf: --debug 1: show all conf files found
2024-07-01 23:06:14 +01:00
Simon Michael
1996630b09
imp: cli: --debug: demote large CliOpts output to level 2
2024-07-01 23:06:14 +01:00
Simon Michael
6af992bc3a
dev: consolidate/update cli/addons tests
2024-07-01 23:06:14 +01:00
Simon Michael
2ab8ac31f4
fix: cli: more cli parsing fixes; debug output improvements
2024-07-01 22:50:44 +01:00
Simon Michael
2a6a5ea042
fix: conf: fix passing of general options to ui, web
2024-07-01 08:10:40 +01:00
Simon Michael
65c30bceb6
;doc: update manuals
2024-06-27 00:24:23 +01:00
Simon Michael
d35e4bde11
;doc: cli: fix some manual warnings
2024-06-27 00:24:09 +01:00
Simon Michael
6aa1bbc18a
;doc: --debug help tweak
2024-06-26 23:24:41 +01:00
Simon Michael
b8706dee56
;doc: config files: edits
2024-06-25 18:37:55 +01:00
Simon Michael
5f285a56ab
doc: update manuals
2024-06-25 18:37:55 +01:00
Simon Michael
d9f314dfa3
;doc: update help
2024-06-25 18:37:55 +01:00
Simon Michael
5c45963a07
;doc: config files
2024-06-25 18:37:55 +01:00
Simon Michael
40620666f8
imp: cli: rename --rules-file to --rules; tweak options help
...
For brevity, and consistency with --conf.
--rules-file remains supported, as a hidden option.
hledger's main mode now supports the hidden legacy flags,
as the command modes do.
2024-06-25 18:37:55 +01:00
Simon Michael
5739bff249
imp: config file: --conf, --no-conf/-n, improve debug output
2024-06-25 18:37:55 +01:00
Simon Michael
6180a162b2
imp: config file: also try parent dirs
2024-06-25 18:37:55 +01:00
Simon Michael
f89e62cb6f
imp: config file: also try home and XDG config dirs
2024-06-25 18:37:55 +01:00
Simon Michael
d76677c6ad
imp: config file: don't require -- before addon-specific opts
2024-06-25 18:37:55 +01:00
Simon Michael
361b0016ff
fix: cli: ensureDebugFlagHasVal: fix multiple --debug flags not just one
2024-06-25 18:37:55 +01:00
Simon Michael
66f4091b38
fix: cli: don't let a valueless --debug flag eat the command name
2024-06-25 18:37:55 +01:00
Simon Michael
6c294e91d6
fix: ui, web: accept valueless --debug flag again
2024-06-25 18:37:55 +01:00
Simon Michael
0c9b704bcc
fix: config file: pass only post-cmd and cmd-specific conf opts to addons
2024-06-25 18:37:55 +01:00
Simon Michael
3345adb2fc
dev: refactor: cli main procedure
2024-06-25 18:37:55 +01:00
Simon Michael
969b5a89d1
dev: comment parsing tests/refactoring, fix indented timedot comments
2024-06-25 18:37:54 +01:00
Simon Michael
6b24c09a58
feat: config file: ignore unsupported general options; refactor
2024-06-25 18:37:54 +01:00
Simon Michael
3797fe13d3
imp: move --debug to help flags, making it more universal
2024-06-25 18:37:54 +01:00
Simon Michael
e1991be46f
feat: config file: add a real parser, support command-specific options
2024-06-25 18:37:54 +01:00
Simon Michael
4175dc50ac
;cabal: update cabal files
2024-06-25 18:37:54 +01:00
Simon Michael
46cda5e7de
imp: cli: allow command options to be written before the command also
...
It's clearer to write command-specific flags after the command name
argument, but that's no longer required.
(Writing non-builtin, addon-specific flags after -- is still required).
Also, give up on "obey help/doc/version flags even if there's a bad
command/flag", it's too hard to do well.
2024-06-25 18:37:54 +01:00
Simon Michael
570a5472e2
dev: cli: refactor/clarify main procedure and command line processing
2024-06-25 18:37:54 +01:00
Simon Michael
204df22739
feat: cli: basic config file support for hledger
...
And some refactoring of command line parsing code.
General options only, in ./hledger.conf, for now.
2024-06-25 18:37:54 +01:00
Simon Michael
a734ba5026
;dev: update tests for weekly headings change [ #2204 ]
...
Unfortunately our ci workflow does not reliably detect commit messages
with PRs, and in this case it wrongly identified the commit as a
harmless doc change.
2024-06-25 09:06:29 +01:00
Simon Michael
83bd98076a
;doc: box-drawing: edits
2024-06-12 18:39:27 +01:00
Simon Michael
aa5bca04d3
;doc: box-drawing: edits
2024-06-12 18:36:10 +01:00
Simon Michael
2916b12651
;doc: mention --pretty's new border-enabling behaviour
2024-06-12 18:24:32 +01:00
Simon Michael
de617ec91b
imp: balcmds: improve html output; refactor
...
The Total: row headings are now configurable in one place,
and currently disabled for text output and enabled for csv & html.
The balance commands' HTML output no longer repeats the "total" and
"Net" headings when the totals row has multiple lines.
And the layout has been improved and made more consistent with the
text output.
2024-06-12 18:04:56 +01:00
Simon Michael
85dde3bac9
dev: refactor: balance report rendering
2024-06-12 15:28:51 +01:00
Simon Michael
1b4b079f4d
imp: balcmds: with --pretty, show table and inter-column borders
2024-06-12 05:02:08 +01:00
Simon Michael
574115e001
imp: balcmds: csv, html output: change "total" row header to "Total:"
2024-06-12 05:02:08 +01:00