Commit Graph

2151 Commits

Author SHA1 Message Date
Simon Michael
a2af816611 dev:Hledger.Utils.IO: inputToHandle -> textToHandle; set utf8 not utf8_bom 2025-09-26 01:08:48 -10:00
Simon Michael
fdee9d93cf ;doc:register: fix a typo in --depth example [hledger_site#140]
(reported by Quả Cầu)
2025-09-24 18:06:34 -10:00
Simon Michael
d9bc45b523 imp:accounts: --types shows a tag only when type is known 2025-09-21 11:44:06 -07:00
Simon Michael
18f5c8aa24 imp:accounts: sort options a little 2025-09-21 11:44:06 -07:00
Simon Michael
3532d039bc ;doc: update command docs 2025-09-19 08:43:16 -07:00
Simon Michael
3e449fe238 fix:setup: fix "undeclared commodities" whitespace 2025-09-13 14:35:59 +01:00
Simon Michael
7ccc0d5bdd lib:Hledger.UI.ErrorScreen: rename, clarify uiReload*
uiReloadJournal -> uiReload
 uiReloadJournalIfChanged -> uiReloadIfFileChanged
2025-09-12 10:02:35 +01:00
Simon Michael
f731d3c25a lib!: Hledger.Cli.Utils: stop exporting pivotByOpts, anonymiseByOpts 2025-09-11 10:51:16 +01:00
Simon Michael
c19620f3bc lib!: refactor, rename
pivotByOpts -> maybePivot
anonymiseByOpts -> maybeWarnAboutAnon
2025-09-11 10:18:41 +01:00
Simon Michael
e64c26e603 lib!: rename withJournal -> withJournalDo, with alias and deprecation warning 2025-09-11 10:03:10 +01:00
Simon Michael
2c18614e7b ;dev: journalTransform notes 2025-09-11 09:58:24 +01:00
Simon Michael
ed5cf569b5 imp:print: alphabetise flags, mostly 2025-09-11 07:33:22 +01:00
Simon Michael
3a1e30255c fix:print: remove unused --show-costs flag from command line help 2025-09-11 07:33:22 +01:00
Stephen Morgan
aad61e465d fix: balance: Correctly handle empty journals (#2452)
Eliminate several partial functions.
2025-09-11 07:29:27 +01:00
Stephen Morgan
db6714a120 fix: budget: Respect --summary-only flag. (#2443)
Budget reports will now respect the --summary-only flag.
2025-08-30 20:17:31 +01:00
Simon Michael
7de0c0ac7a imp:import: show briefer no txns output, just file names 2025-08-28 21:38:38 +01:00
Simon Michael
cffee7f546 imp:import: avoid extra newline after output 2025-08-28 21:38:38 +01:00
Simon Michael
b5cb1d08d0 fix: add, commodities, diff: support the --conf and -n/--no-conf flags [#2446] 2025-08-26 14:01:48 +01:00
Simon Michael
a2a1124680 ;doc: update command docs 2025-08-24 09:02:49 +01:00
Simon Michael
4c1c44ce36 imp:cli: clearer help for -f, and the add and import commands
From euouae's irc feedback
2025-08-24 08:59:50 +01:00
Simon Michael
bdf5e7d06e ;doc:import: use windows-compatible quotes in watchexec example 2025-08-15 04:13:15 +01:00
Simon Michael
cb1d6a71a6 dev:import:archive: fix bugs in new code
Too hard to rebase
2025-08-14 19:22:52 +01:00
Simon Michael
9766f65ac7 imp:import: show info output on stderr, not stdout 2025-08-14 14:23:53 +01:00
Simon Michael
76dc6d089a feat:import:archive: archive data files, and process oldest first 2025-08-14 12:54:40 +01:00
Simon Michael
db7783b16d dev: cleanups 2025-08-14 12:54:40 +01:00
Simon Michael
bfbef4bcbb dev: refactor PrefixedFilePath 2025-08-14 12:37:11 +01:00
Simon Michael
f604b7a416 fix: accounts: a tag: query only matches account tags, not posting tags
Eg, `hledger accounts tag:t` lists only account a from this journal:

    account a  ; t:

    2025-01-01
        a          1
        b         -1  ; t:
2025-08-03 05:38:33 +01:00
Simon Michael
aabc892277 dev: Accounts: import cleanup 2025-08-03 05:37:56 +01:00
Simon Michael
cace7eb491 ;doc:areg: clarification 2025-07-30 18:17:58 +01:00
Simon Michael
6521b8dfdb imp:setup: improve output 2025-07-25 19:08:26 +01:00
Simon Michael
b7e35f84a2 imp: include: add hidden --old-glob flag to restore old dot behaviour
This disables the workaround for Glob#49, allowing glob patterns to
find dot files and traverse dot directories again (sometimes too much).
2025-07-17 08:00:08 -07:00
Simon Michael
0ea239503c dev: rename the hidden --timeclock-old flag to --old-timeclock
--timeclock-old is still supported as well, for now, even though
this flag is not documented yet (it has appeared in
changelogs/release notes and in issue discussion).
2025-07-17 07:49:39 -07:00
Simon Michael
57b1e18757 imp:demo: show a better error message if asciinema is not installed 2025-07-08 11:35:31 -07:00
Simon Michael
3952d4e611 ;dev:cli: update outdated CLI help 2025-07-08 11:35:31 -07:00
Simon Michael
fc93a4c644 fix:add: show green prompts properly instead of ANSI codes [#2410] 2025-07-01 16:41:05 -07:00
Simon Michael
cd904e80d5 imp:setup: downgrade lack of pager to an info (no pager on windows) 2025-07-01 12:48:28 -07:00
Simon Michael
bc0cfebeb5 imp:setup: ignore shell completions for now 2025-07-01 12:05:56 -07:00
Simon Michael
f11ad4b70f imp:setup: output improvements 2025-07-01 05:39:03 -07:00
Simon Michael
1efc0486d5 ;doc:add: clarify that add is for journal format only 2025-06-30 06:24:52 -07:00
savanto
230998136f imp: areg: do not abbrev other accts in machine-readable output (#1995)
- Do not turn "other accounts" into a comma-delimited string when the
  report is constructed, but pass `AccountName`s up the chain. This
  requires modifying the `AccountTransactionsReportItem` type to contain
  `[AccountName]` rather than `Text`.

- Perform the account name summarization
  (`Hledger.Data.AccountName.accountSummarizedName`) closer to the
  actual rendering of the report, so that different report formats can
  choose summarization strategy.

- Continue to summarize as before for terminal/text output (ie.
  human-readable). Do not summarize any more for machine-readable output
  (csv/html/fods).
2025-06-28 13:38:58 -07:00
Stephen Morgan
79fa806690 fix: csv: Make --summary-only work with csv output (#2411)
Don't display date headers with --summary-only in csv output.
2025-06-24 20:19:29 -07:00
Simon Michael
afd18a10bf fix: show historical balances even if report period is empty [#2403]
This adds a safer version of spanDefaultsFrom that won't create spans
that end before they start, and updates all reports to use it.

The only related change noticed so far is that close now gives an
error instead of a malformed entry, when there's no data to close.
[#2409]
2025-06-15 22:42:58 -10:00
Simon Michael
d504e0a7c0 fix:demo: drop mention of -- ASCIINEMAOPTS, it no longer works 2025-06-15 13:25:04 -10:00
Simon Michael
3ba3d3d676 ;doc: drop -- argument from more docs [#458] 2025-06-15 13:25:04 -10:00
Simon Michael
877ab3e5b0 fix:cli: clearer unknown command & flag error; accept addon flags [#2388] [#458]
When given an unknown command and an unknown flag, we now prioritise
showing the unknown command error. [#2388]

This fix, on top of prior work, also solves a long standing CLI/UX
problem we've had with addon commands: now you can freely mix in
addon-specific options in a hledger command line, and hledger won't
complain. Ie, writing -- before addon flags is no longer needed. \o/
2025-06-15 12:47:59 -10:00
Simon Michael
e473fc9794 ;doc: update command docs 2025-06-15 07:32:40 -10:00
Simon Michael
4a5775da71 imp: commodities/payees/tags: used/declared flags, like accounts
And general cleanup of options and help across
the accounts, commodities, payees, tags commands.
2025-06-15 07:32:40 -10:00
Simon Michael
b8f12e3908 ;doc: print: improve --location help 2025-06-14 17:36:28 -10:00
Simon Michael
3f7a9f97f9 fix:help: -i and -m were always showing help's help [#2399] 2025-06-13 21:47:58 -10:00
Simon Michael
e9be7ea7f5 ;doc:add: edits 2025-06-13 12:31:56 -10:00