Commit Graph

3981 Commits

Author SHA1 Message Date
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
Simon Michael
9788a06223 fix: balcmds: don't repeat "total" and "Net:" headers in HTML output 2024-06-12 05:02:04 +01:00
Simon Michael
1a242c1264 dev: refactor table rendering code
- Consolidate some table rendering helpers in Balance.hs
- Rename, document for clarity
- Extract parameters for controlling table borders
- hlint suggestions
2024-06-12 05:01:48 +01:00
Simon Michael
1260a68596 dev: CompoundBalanceCommand: refactor table rendering 2024-06-12 05:01:48 +01:00
Simon Michael
e89bea8563 fix: handle account type declarations in multiple files correctly [#2202]
Tags and types declared in account directives in sibling files or
included files are now combined more carefully.

In particular, when merging two Journals into one,

- jdeclaredaccounttags and jdeclaredaccounttypes no longer lose information;
  any duplicated/conflicting tag/type values are preserved.

- jaccounttypes now prefers the last type declared in case of
  conflict, not the first.
2024-06-10 08:32:54 +01:00
Simon Michael
7804685b09 ;dev: test: multiple-files: convert to latest shelltest format 2024-06-10 08:26:58 +01:00
Simon Michael
a3a0f87997 ;doc: cli: mention --tldr near the start [#2201] 2024-06-08 13:29:35 -07:00
Simon Michael
4900072ff8 imp: mention the tldr --render flag in the failure warning [#2201] 2024-06-08 13:29:32 -07:00
Simon Michael
971396a34e imp: discourage auto-update of tldr db when using tldr-node-client 2024-06-08 10:23:05 -07:00
Simon Michael
4772001fe5 fix: make --tldr compatible with the tealdeer client also 2024-06-08 10:22:44 -07:00
Simon Michael
91d5308783 ;tools: Shake cmdhelp -> cmddocs, now runs hledger to update flag docs
Now, updating a command's docs (for hledger manual and for --help) requires
running the command (with stack exec -- hledger). The sequence is now
a bit recursive:

1. Run hledger CMD -h to update CMD.md with the latest cmdargs help output for CMD's flags.
   CMD.md is included in the hledger manual, when rendering that.
2. Convert CMD.md to CMD.txt, with pandoc.
3. Build hledger, embedding CMD.txt for cmdargs to use as -h output.

This need only be done after changing command docs or flags, and
hopefully won't be a hassle. Shake cmddocs now shows progress output
to make things clearer.
2024-06-07 14:35:31 -07:00
Simon Michael
c3e9255488 ;imp: bal: drop blank line in flags help 2024-06-07 14:11:44 -07:00
Simon Michael
c4e138dfb1 ;doc: update help 2024-06-07 07:05:52 -07:00
Simon Michael
2139505c02 ;doc: update manuals 2024-06-07 07:05:51 -07:00
Simon Michael
3e13f39f94 imp: diff, prices: improve help layout 2024-06-07 07:05:35 -07:00
Simon Michael
c787286844 imp: doc: show flags help in manuals
Each CMD.md file now contains a snapshot of the flags help as rendered
by --help. For now these must be updated manually.
2024-06-07 06:55:33 -07:00
Simon Michael
0ccfc78844 ;dev: cleanup 2024-06-07 06:32:52 -07:00
Simon Michael
4f0e07d024 ;doc: changelogs: bump to latest commit 2024-06-01 14:14:24 -10:00
Simon Michael
8f24fad909 ;doc: merge 1.34 release docs 2024-06-01 14:13:57 -10:00
Simon Michael
3f3672e999 ;doc: update manuals 2024-06-01 13:30:47 -10:00
Simon Michael
d18c00e1ec ;cabal: update cabal files 2024-06-01 13:30:21 -10:00
Simon Michael
aec28842c7 ;pkg: bump version to 1.34.99 2024-06-01 13:30:20 -10:00
Simon Michael
6716e3a503 ;doc: edit 2024-06-01 09:46:14 -10:00
Simon Michael
84d788b2df ;doc: edit 2024-06-01 09:39:29 -10:00
Simon Michael
e2c2594d60 ;doc: edit 2024-06-01 09:34:51 -10:00
Simon Michael
76882319a7 ;doc: officially deprecate secondary dates, harder 2024-06-01 09:31:55 -10:00
Simon Michael
6376f459f5 ;doc: officially deprecate secondary dates and --date2 2024-06-01 08:46:42 -10:00
Simon Michael
6fd856aa47 ;cabal: update cabal files 2024-05-31 19:55:33 -10:00
Simon Michael
311be367b0 ;doc: cli: simplify, use generic help flags again 2024-05-31 19:54:18 -10:00
Simon Michael
e7b60be4b0 ;dev: drop old extra-source-file 2024-05-31 19:52:40 -10:00
Simon Michael
0f8b536055 ;doc: Generating data: rewrite 2024-05-31 19:41:56 -10:00
Simon Michael
a5a067204e ;doc: JSON output, web: link to OpenAPI spec 2024-05-31 19:41:23 -10:00
Simon Michael
88f70eba6b ;doc: cli, ui, web: synopsis, options cleanup/consistency 2024-05-31 19:41:01 -10:00
Simon Michael
7f583a8414 ;doc: correction, NO_COLOR does not override --color=yes 2024-05-31 18:16:33 -10:00
Simon Michael
12eaee8dcb ;doc: update manuals 2024-05-29 17:02:13 -10:00
Simon Michael
77ee3fd846 ;doc: update command help 2024-05-29 17:02:03 -10:00
Simon Michael
d47513c669 ;doc: sync command summaries between manuals and tldr, updating both 2024-05-29 17:00:11 -10:00
Simon Michael
85cf808183 ;doc: update manuals 2024-05-29 16:12:48 -10:00
Simon Michael
9d53698eab ;imp: cli: also mention 'y' and 'n' in help 2024-05-29 16:12:44 -10:00
Simon Michael
7d0e605bc3 ;imp: cli: improve --debug's help 2024-05-29 16:09:53 -10:00
Simon Michael
4c575c521b ;doc: options: remove redundancy 2024-05-29 15:45:56 -10:00
Simon Michael
29567a3b29 imp: --tldr: show the source if 'tldr' is not installed 2024-05-29 15:37:48 -10:00
Simon Michael
152b20413c doc: update manuals 2024-05-29 15:32:19 -10:00
Simon Michael
f3eba65726 ;doc: update command help 2024-05-29 15:32:19 -10:00
Simon Michael
6007e4b417 ;cabal: update cabal files 2024-05-29 15:32:19 -10:00
Simon Michael
1295ea7678 ;doc: options cleanup 2024-05-29 15:32:19 -10:00
Simon Michael
3a387fab47 imp: cli: commands list: cleanup 2024-05-29 15:32:19 -10:00
Simon Michael
c5f8444627 feat: hledger's tldr pages are now built in, accessible via --tldr
And a few cleanups/fixes related to flag processing.
The help flags are now listed in order of precedence.
2024-05-29 15:32:19 -10:00
Simon Michael
82230e5a1f imp: cli: end help output with a blank line 2024-05-29 14:45:04 -10:00
Simon Michael
c35eed5506 imp: cli: fix help headings highlighting 2024-05-29 14:45:04 -10:00
Simon Michael
5f255e28ee ;doc: update/simplify general options list in the manuals 2024-05-29 10:00:34 -10:00
Simon Michael
d4dcbbd4c8 fix: help, --man: fix jumping to TOPIC when viewing a man page
And clarify exact/prefix matching behaviour.
2024-05-29 09:37:20 -10:00
Simon Michael
085910708b imp: help: add standard help and (hidden) --debug flags 2024-05-29 09:37:20 -10:00
Simon Michael
f88aa8f871 imp: cli: --info before --man 2024-05-29 09:37:20 -10:00
Simon Michael
a366f3aeaa imp: ui, web, cli, all cli commands now show the general flags grouped
And cli/ui/web each have their own more specific help flags.
2024-05-29 09:37:19 -10:00
Simon Michael
ffb52e3032 imp: cli: refactor, reorg, update general flags 2024-05-28 23:44:29 -10:00
Simon Michael
fc43c6abbc ;doc: Unicode characters: mention UTF-8 on windows 2024-05-28 07:23:10 -10:00
Simon Michael
8ad803cae7 ;doc: add: drop lengthy transcript, add simpler example commands (from tldr) 2024-05-23 16:22:58 -10:00
Simon Michael
f3f5fae83f ;doc: period expressions: mention last day of month adjusting [#2005] 2024-05-23 08:20:44 -10:00
Simon Michael
d4684c36fe ;doc: move "Amount formatting" down, it seems not the best first topic 2024-05-23 08:08:12 -10:00
Simon Michael
46b79079bf ;doc: The flattening: adapt to the site's depth-1 page TOCs
and tweak command/screen headings.

This goes further in the direction of showing simple lists of topics
instead of outlines. mdbook-toc doesn't support configuring the TOC
depth this per page, so it has to be site wide.

Overall I feel this is better, see eg the hledger manual.  It hides a
lot of interesting topic names but a shorter, linear list is less
scary and clearer than a huge scrolling outline. Once you click in to
a section and find a subsection of interest, it's still easy to
bookmark/share those by clicking their heading.
2024-05-22 13:06:08 -10:00
Simon Michael
235cb3d8e2 fix:pkg: fix a build error with ghc 8.10 [#2198] 2024-05-17 14:48:32 -10:00
Simon Michael
e3a67b197e ;doc: bal: mention --summary-only 2024-05-09 14:47:53 -10:00
Simon Michael
1d2f85432d ;doc: include ui, web in commands in TOC 2024-05-09 14:20:32 -10:00
Simon Michael
b7219f8935 ;doc: reorganise the commands list in manual to match cli, improve links 2024-05-09 13:56:09 -10:00
Simon Michael
9fb210da8c ;doc: report start & end date, smart dates: cleanup, simplify markup 2024-05-09 11:10:51 -10:00
Simon Michael
802bdd3433 imp: cli: commands list: updates 2024-05-07 16:49:34 -10:00
Simon Michael
d817254290 ;doc: update changelogs 2024-05-07 16:45:21 -10:00
Simon Michael
b7e5c05da2 imp: -I can now be overridden by -s or the check command
This enables a "relaxed" workflow where you delay balance assertions
checking until strict mode is turned on: always run hledger -I, and
add -s when you're ready.
2024-05-07 15:44:06 -10:00
Simon Michael
ad90de62d3 ;doc: check: edits 2024-05-02 21:58:52 -10:00
Simon Michael
8975988015 ;doc: check: ordereddates: edit 2024-05-02 21:46:48 -10:00
Simon Michael
ea58a7ccd7 imp: check: check ordereddates before balance assertions, when both are enabled 2024-05-02 21:11:04 -10:00
Simon Michael
4abb8ffc2e ;doc: check: expand check descriptions 2024-05-02 19:59:00 -10:00
Simon Michael
fe1fc313ba imp: cli: commands list: more cleanup 2024-05-02 18:44:18 -10:00
Simon Michael
16e00062d3 fix: cli: don't re-list known installed addons in final section 2024-05-02 17:19:46 -10:00
Simon Michael
8666b5edc0 imp: cli: a commands list refresh 2024-05-02 12:24:33 -10:00
Simon Michael
b13949c7b8 imp: cli: commands list: drop dedicated entry for hledger-stockquotes 2024-05-02 11:38:42 -10:00
Simon Michael
490a46fcd2 fix: journal: parse include directives with trailing whitespace
[https://github.com/adept/full-fledged-hledger/issues/29]
2024-05-02 07:26:12 -10:00
Simon Michael
2a659e18db ;doc: changelogs: 1.33.1 2024-05-02 00:46:15 -10:00
Simon Michael
02e242c9b1 ;doc: update changelogs 2024-05-01 23:23:37 -10:00
Simon Michael
7525014c7d ;cabal: update cabal files 2024-05-01 23:04:18 -10:00
Simon Michael
8d62af8ae0 imp: Revert problematic process-1.6.19.0 bound, it seems not strictly needed [#2149] 2024-05-01 23:04:08 -10:00
Simon Michael
96caa8f352 fix: detect ghc-debug support more accurately, checking hledger-lib also 2024-05-01 15:27:42 -10:00
Simon Michael
6796decb72 fix: show trailing decimal mark on cost amounts too, when needed 2024-05-01 14:17:46 -10:00
Simon Michael
4c53ab419b cabal: update cabal files 2024-05-01 13:44:14 -10:00
Simon Michael
d17b32c7eb imp: cli,ui,web: support ghc-debug for analysing memory/profile info
When built with the ghcdebug flag and started with --debug=-1 (or -2
to pause at startup, or -3 to pause before exit), hledger can be
controlled by ghc-debug clients like ghc-debug-brick or a custom
ghc-debug query script.

Also, refactor version string code.
2024-05-01 13:43:04 -10:00
Simon Michael
55401282a0 imp: run checks in a well-defined order; and tweak that order
Now commodities are checked before accounts, and tags before recentassertions.
Also some check doc cleanups.
2024-04-26 18:59:45 -10:00
Simon Michael
4cbf72ab1f imp!: check ordereddates: drop --date2 support; check primary dates only
date2 is a deprecated feature and was getting in the way, so has been dropped
from the ordereddates check, simplifying it.
2024-04-26 18:59:45 -10:00
Simon Michael
1c5fd0c6a3 ;doc: update changelogs 2024-04-26 17:09:17 -10:00
Simon Michael
fbd26f67a2 dev: tests: errors: recentassertions: fix recently broken test 2024-04-25 08:09:10 -10:00
Simon Michael
9ffa990e9e fix: balcmds: show digit groups marks in html output again [#2196]
This broke in 1.25.
2024-04-25 08:09:10 -10:00
Simon Michael
7920b0b9ac ;doc: csv: amount decimal places: edits 2024-04-24 16:02:15 -10:00
Simon Michael
2a67aa327b ;doc: import: edits 2024-04-24 15:54:09 -10:00
Simon Michael
210f28a7b5 ;doc: import: edits 2024-04-24 15:49:51 -10:00
Simon Michael
13cf8de1a1 ;doc: import: edits 2024-04-24 15:04:54 -10:00
Simon Michael
061580f0bc ;doc: import: Skipping -> Date skipping 2024-04-24 14:47:42 -10:00
Simon Michael
7911a4b29a ;doc: import: edits 2024-04-24 14:39:34 -10:00
Simon Michael
3863623ed9 ;doc: import: rename/expand/link commodity styles section 2024-04-24 14:32:20 -10:00
Simon Michael
dff7ff0dc1 ;doc: csv: amount decimal places: test edit for website hook 2024-04-24 14:26:06 -10:00
Simon Michael
a439a7ba78 ;doc: csv: amount decimal places: edits 2024-04-24 14:25:17 -10:00
Simon Michael
5397c73a1a ;doc: csv: amount decimal places: edits 2024-04-24 14:23:00 -10:00
Simon Michael
876f115806 ;doc: csv: amount decimal places: edits 2024-04-24 14:13:22 -10:00
Simon Michael
7f72cce6ce ;doc: csv: amount decimal places: edits 2024-04-24 13:49:29 -10:00
Simon Michael
69c0df4390 ;doc: csv: amount decimal places: expand, note import behaviour 2024-04-24 13:38:06 -10:00
Simon Michael
61d512b6ef ;dev: tests: errors: cleanup for easier flycheck-hledger testing 2024-04-23 08:01:39 -10:00
Simon Michael
27d5f14553 ;doc: changelogs: 1.33: fix issue links (using md-issue-refs.el) 2024-04-22 15:58:05 -10:00
Simon Michael
3bc1bd2c75 imp:cli:commands list: move HELP, UIS to top; cleanups 2024-04-19 01:19:58 -10:00
Simon Michael
13c5827ad7 fix: add: don't show ANSI escape codes when they're not supported 2024-04-18 23:19:21 -10:00
Simon Michael
4ae62a1833 ;doc: update manuals 2024-04-18 13:35:28 -10:00
Simon Michael
0edf99350a ;doc: update command help 2024-04-18 13:35:09 -10:00
Simon Michael
f59cb5ff3c ;cabal: update cabal files 2024-04-18 13:33:43 -10:00
Simon Michael
f5c4d99291 ;pkg: bump version to 1.33.99 2024-04-18 13:33:42 -10:00
Simon Michael
9651082fde ;doc: bump release date to 4/18 2024-04-18 13:20:12 -10:00
Simon Michael
997653e3b9 ;doc: changelogs: 1.33 2024-04-18 13:19:34 -10:00
Simon Michael
41fd42e8b3 ;doc: Assertions and subaccounts: edits 2024-04-11 19:39:48 -10:00
Simon Michael
ce528c5680 ;doc: Assertions and commodities / subaccounts: rewrite 2024-04-11 18:46:38 -10:00
Simon Michael
350a2c0918 ;doc: Assertions and ordering: cleanups 2024-04-11 17:50:26 -10:00
Simon Michael
1829af239c ;doc: Assertions and ordering: edits 2024-04-11 17:40:28 -10:00
Simon Michael
96e9bdb2e2 ;doc: Assertions and ordering: rewrite; update Ledger info 2024-04-11 17:28:28 -10:00
Simon Michael
28abe5e9ff ;doc:bse: links 2024-04-11 11:55:37 -10:00
Simon Michael
d9b5ed7bb2 ;doc:bse: note requirements for checking the AE 2024-04-11 11:51:44 -10:00
Simon Michael
91aef62c29 ;doc: virtual postings: edit 2024-04-11 11:36:46 -10:00
Simon Michael
ff3af71c4e ;doc: update command help 2024-04-11 11:15:44 -10:00
Simon Michael
e2cc2a70ac ;doc:bs,bse,cf,is: update sample output 2024-04-11 11:13:18 -10:00
Simon Michael
7231683613 cabal: update cabal files 2024-04-10 08:07:17 -10:00
Simon Michael
69e4a88ccf pkg: require process 1.6.19.0+ for HSEC-2024-0003
This is to avoid potential vulnerabilities on Windows due to the process issue disclosed today:
https://haskell.github.io/security-advisories/advisory/HSEC-2024-0003.html
2024-04-10 08:07:08 -10:00
Simon Michael
5be3ee9e20 imp: disallow date: in expr: OR expressions, avoiding unclear semantics [#2177][#2178] 2024-04-07 23:37:28 -10:00
Simon Michael
9102acf152 ;doc:D: clarify scope [#2191] 2024-04-03 15:00:53 -10:00
Dmitry Astapov
08a5f1ee78 ;fix: roi correctly interacts with --value (fixes #2190) 2024-04-01 08:37:31 -10:00
Simon Michael
89d6f4a451 ;doc: text encoding: mention BOM support [#2189] 2024-03-29 14:56:57 -10:00
Simon Michael
3f184a848a ;doc: import: deduplication: edits 2024-03-27 09:23:28 -10:00
Simon Michael
080184d2e5 ;doc: import: deduplication: edits 2024-03-27 09:14:30 -10:00
Simon Michael
57ad739227 ;doc: import: deduplication: updates 2024-03-27 09:12:03 -10:00
Simon Michael
4ab55b3757 ;dev: update error message tests 2024-03-26 10:12:46 -10:00