Commit Graph

4214 Commits

Author SHA1 Message Date
Simon Michael
bcc8471966 ;doc:csv: How CSV rules are evaluated: clarify 2025-04-16 10:29:28 -10:00
Simon Michael
6aa072e1a4 ;doc:csv: How CSV rules are evaluated: clarify 2025-04-16 10:16:28 -10:00
Simon Michael
df5d14628a ;doc:cli: adjust source to avoid disrupting markdown-mode outline 2025-04-16 08:40:58 -10:00
Simon Michael
57b13dab73 ;doc:cli: fix hledger-iadd link 2025-04-12 14:33:15 -10:00
Simon Michael
9340b73aae imp: improve/format errors for various failures [#2367]
These now call error' and show errors in the standard style:

- reading a nonexistent data file
- reading an unsafe dotted file name on windows
- web: using --socket on windows
- demo: demo not found
- demo: error while running asciinema
- diff: bad arguments
- print --match: no match found
- register --match: no match found
- roi: no investment transactions found
2025-04-11 08:06:47 -10:00
Simon Michael
454c669fe4 fix:cli,ui,web: consistent console error output independent of GHC version [#2367]
Hledger.Utils.IO helpers have been updated and new ones have been
added (exitOnExceptions, exitWithError) to allow consistent display of
program errors whether compiled with GHC <9.10, GHC 9.10, or GHC >9.10.
The trailing newlines added by GHC 9.10 are gone,
and so is the "uncaught exception" output added by GHC 9.12.
2025-04-11 08:06:47 -10:00
Simon Michael
9b6d3da677 ;cabal: update cabal files 2025-04-09 10:58:54 -10:00
Simon Michael
ee3b6c29ce ;pkg: allow ghc 9.12 2025-04-09 10:58:52 -10:00
Simon Michael
bc16552e5d ;doc:csv:encoding: add hledger version info 2025-04-08 19:30:59 -10:00
Simon Michael
e57764f676 ;doc: beancount output: edits 2025-04-05 03:43:29 -10:00
Michael Rees
62071bc4c2 feat: timeclock: Add support for multiple clocked in sessions (#2141)
We now support having multiple sessions clocked in. These are paired by
account name if given on the out entry, and otherwise an out closes the
most recent in entry.

Note that this breaks some backwards compatibility, in that we
previously ignored the description on the clock out entry. To mitigate
this, a new hidden flag --timeclock-old has been added, which reverts to
the old behavior.
2025-04-03 11:19:18 -10:00
Simon Michael
2ff2fd1594 ;pkg: simplify LICENSE (try to fix github license detection) 2025-03-31 19:12:38 -10:00
Simon Michael
fb584e7e8b ;pkg: simplify LICENSE, add AUTHORS.md (try to fix github license detection) 2025-03-31 19:05:19 -10:00
Simon Michael
20226283b8 ;pkg: tweak LICENSE files, try to get github to recognise 2025-03-31 18:18:10 -10:00
Simon Michael
47bb40f838 ;pkg: clean up LICENSE files, main module licensing headers 2025-03-31 18:10:19 -10:00
Simon Michael
8d1a8d3799 ;cabal: update cabal files 2025-03-31 17:40:30 -10:00
Simon Michael
ed6cef5c00 ;pkg: clean up package.yaml files
Consistent layout.
Group metadata at the top in similar order to `cabal format`.
2025-03-31 17:25:41 -10:00
Simon Michael
775507c2d4 ;pkg:cabal: specify GPLv3+ exactly; require cabal 2.2+ [#2359]
Previously our cabal files used cabal-version 1.12, and were in theory
buildable with any ancient version of cabal.  Now at least cabal 2.2
(or a version of stack built with with similar Cabal version) is
required to build hledger.
2025-03-31 16:55:36 -10:00
Simon Michael
b6ec245647 ;cabal: update cabal files 2025-03-31 16:33:50 -10:00
Simon Michael
cb6a9b2f97 ;pkg:cabal: update tested-with in all package.yamls 2025-03-31 16:27:40 -10:00
Thomas Miedema
bf3d1b6b49 ;dev: extra >= 1.7.11 is required
Commit ff28aa32 introduced usage of Data.List.Extra.groupOnKey, which
first came with extra-1.7.11.

Fixes stack8.10.yaml build hopefully.
2025-03-31 16:18:09 -10:00
Simon Michael
fa4dbf45af ;doc:csv:encoding: edits [#2354] 2025-03-30 10:09:45 -10:00
Simon Michael
b75f0ebd00 ;fix:doc:csv:encoding: list accurate canonical encoding names [#2354]
see also https://github.com/dmwit/encoding/issues/28
2025-03-30 10:02:59 -10:00
Simon Michael
6122366af1 ;doc:Commands: fix commands link in TOC 2025-03-13 11:52:32 -10:00
Simon Michael
9521fead17 ;doc:Commands: add run, repl, commands to TOC 2025-03-13 11:47:26 -10:00
Simon Michael
2a45cfa27b ;doc: fix update csv tutorial link 2025-03-13 11:16:39 -10:00
Simon Michael
efff1cfdb5 ;doc: finalise changelogs for 1.42.1 on 2025-03-12 2025-03-12 21:35:24 -10:00
Simon Michael
be1e921dca ;doc: update changelogs 2025-03-12 21:35:24 -10:00
Stephen Morgan
8474c811c5 imp run: More successful cache hits with forecast
If forecast start and end dates are explicitly requested with
--forecast=, those parts of the reportspan_ can be replaced with the
forecast dates, meaning more successful cache hits.
2025-03-12 20:47:17 -10:00
Simon Michael
133560aa93 ;dev: csv: no need to test for unsupported feature [#2352] 2025-03-12 20:40:36 -10:00
Thomas Miedema
a8a0d3ee30 fix: csv: fix regression in parsing rules containing & (#2352) 2025-03-12 20:35:59 -10:00
Simon Michael
6f17d133dd ;imp:cli: improve help for --pretty 2025-03-09 08:16:38 -10:00
Simon Michael
6d47530ebc ;imp:cli: improve help for mutually exclusive valuation flags 2025-03-09 08:16:38 -10:00
Simon Michael
dbb85e3a9f ;doc:balance: "types" -> "modes" 2025-03-08 13:09:02 -10:00
Simon Michael
dcd5221489 ;doc: update embedded manuals 2025-03-08 12:46:13 -10:00
Simon Michael
b31091195b ;doc: update command docs 2025-03-08 12:44:57 -10:00
Simon Michael
02ef6e45e7 imp:cli: make mutually exclusive flags clearer in --help 2025-03-08 12:42:16 -10:00
Simon Michael
a0afda4a2b ;doc:options: mention mutually exclusive flags 2025-03-08 11:20:21 -10:00
Dmitry Astapov
9963a01a15 run: do not pre-load journal(s) at the start of "run" [#2345]
wait for the first command to do this. Same for "repl"
2025-03-08 09:55:59 -10:00
Dmitry Astapov
c0b3c932ea ;run: --forecast with changed reporting interval fix (+test) [#2345] 2025-03-08 09:55:59 -10:00
Simon Michael
52d99ee1eb ;doc: update embedded manuals 2025-03-07 22:03:32 -10:00
Simon Michael
054e9561e4 ;doc: update command docs 2025-03-07 22:03:09 -10:00
Simon Michael
44a4b79fa4 ;doc:run, repl: more edits 2025-03-07 22:02:14 -10:00
Simon Michael
e53191049f ;doc: update embedded manuals 2025-03-07 21:38:14 -10:00
Simon Michael
f153d7f707 ;doc: update command docs 2025-03-07 21:38:10 -10:00
Pranesh Prakash
2369f1338a ;doc:repl: updates
Corrected one small mistake, and changed a few other things for clarity.

Applied changes to the right file (Repl.md) this time.
2025-03-07 21:35:44 -10:00
Simon Michael
2274ea6ad6 ;doc:changelogs, relnotes: fix 2025-03-07 21:32:08 -10:00
Simon Michael
f7aec96db1 ;doc:changelogs: cleanups 2025-03-07 21:22:19 -10:00
Simon Michael
b9cd9981f7 ;doc: update embedded manuals 2025-03-07 18:49:13 -10:00
Simon Michael
4e5506da1e ;cabal: update cabal files 2025-03-07 18:49:08 -10:00
Simon Michael
10c523c057 ;pkg: set version to 1.42.99 2025-03-07 18:49:07 -10:00
Simon Michael
554b50f5b2 ;doc:changelog: fix run/repl wording 2025-03-07 18:27:21 -10:00
Pranesh Prakash
fc2aabaab3 ;doc:repl: updates
Corrected one small mistake, and changed a few other things for clarity.
2025-03-07 13:35:26 -10:00
Simon Michael
41e5a538b1 ;pkg: clean up other cabal files, separating unrelated ghc options 2025-03-07 07:54:57 -10:00
Simon Michael
fd0bcdfede ;doc: finalise changelogs for 1.42 on 2025-03-06 2025-03-07 06:36:53 -10:00
Simon Michael
8184d20b9f ;doc: update changelogs 2025-03-07 06:36:15 -10:00
Simon Michael
7a3f69c5a1 ;doc:repl: updates 2025-03-06 19:45:55 -10:00
Dmitry Astapov
a3d2c7bb58 ;run: test that demonstrates caching 2025-03-06 16:43:39 -10:00
Simon Michael
a0cf410a80 ;doc:run, repl: updates 2025-03-06 16:36:54 -10:00
Simon Michael
d65cdbef27 ;doc: update embedded manuals 2025-03-06 16:15:22 -10:00
Simon Michael
3d1994ea76 ;doc: add commands, repl, run to Commands section 2025-03-06 16:15:22 -10:00
Simon Michael
e25cd526b7 ;doc: update embedded manuals 2025-03-06 16:05:55 -10:00
Simon Michael
0cd86d959e ;doc: update command docs 2025-03-06 16:05:25 -10:00
Simon Michael
cdbbe40e5b ;doc:run, repl: updates and edits 2025-03-06 16:03:55 -10:00
Simon Michael
e9f1e7dbd4 ;doc:demo: mark experimental 2025-03-06 16:03:29 -10:00
Simon Michael
12000baf19 ;dev: number run tests 2025-03-06 14:09:38 -10:00
Simon Michael
ebf8d25a49 imp:cli: commands list tweaks 2025-03-06 13:58:24 -10:00
Simon Michael
cf81b042be imp:run,repl: allow running addon commands 2025-03-06 13:56:43 -10:00
Simon Michael
a1a6aad873 fix:repl: also catch IO errors like run nosuchfile
And print exceptions consistently, with a single newline.
2025-03-06 13:05:45 -10:00
Simon Michael
9ecc3a56d0 fix:repl: make the run command work in the REPL again
The now-required -- argument was being lost during REPL parsing.
I think this is right, though it's hard to understand.
2025-03-06 13:03:57 -10:00
Simon Michael
fd906bec95 ;dev:cli: debug output tweaks; moveFlagsAfterCommand doc edit 2025-03-06 11:56:21 -10:00
Dmitry Astapov
758335daf0 run: support --man, --info, --tldr 2025-03-06 11:54:00 -10:00
Dmitry Astapov
7fdb2f7fe6 ;run: use leading -- to decide whether to read from files or not 2025-03-06 11:54:00 -10:00
Dmitry Astapov
4dbeac284c ;run: refuse to read commands from stdin if one of the input files was - 2025-03-06 11:54:00 -10:00
Dmitry Astapov
9c63b36d88 ;run: require -- before first command (+test for that) 2025-03-06 11:54:00 -10:00
Dmitry Astapov
b031144961 run: added run.test 2025-03-06 11:54:00 -10:00
Dmitry Astapov
6766498f42 run: can re-read stdin, if needed 2025-03-06 11:54:00 -10:00
Dmitry Astapov
df0cd78b26 ;run: more robust terminal check 2025-03-06 11:54:00 -10:00
Dmitry Astapov
e4cfd31544 ;run: add leading -- to short cmdline help 2025-03-06 11:54:00 -10:00
Dmitry Astapov
c354e6e9f7 ;run: don't exit repl when subcommand exits 2025-03-06 11:54:00 -10:00
Dmitry Astapov
4aa79cdc53 ;run: added Repl.txt to package.yaml 2025-03-06 11:54:00 -10:00
Dmitry Astapov
22155e2bae run: make sure that reporting interval does not affect caching 2025-03-06 11:54:00 -10:00
Dmitry Astapov
cffceb0d06 ;run: fix stale comments 2025-03-06 11:54:00 -10:00
Dmitry Astapov
1fc7006919 run: cache input files by (iopts, name), allows commands with different iopts 2025-03-06 11:54:00 -10:00
Dmitry Astapov
d3d3e02f9e ;run: another typo fixed 2025-03-06 11:54:00 -10:00
Dmitry Astapov
4ad3d00864 ;doc: run & repl: typos fixed, you can pipe into run 2025-03-06 11:54:00 -10:00
Dmitry Astapov
4a08f975f6 ;run,repl: dont print unrecognized text, error out 2025-03-06 11:54:00 -10:00
Dmitry Astapov
ef6b6ecc1b ;run: accept commands on stdin, repl hides prompt when non-interactive 2025-03-06 11:54:00 -10:00
Dmitry Astapov
2f348f787b ;repl: dont stop on exceptions 2025-03-06 11:54:00 -10:00
Dmitry Astapov
2ba12d6ec5 ;repl: fixed layout in command list 2025-03-06 11:54:00 -10:00
Dmitry Astapov
d615865d4d ;run: reword the quoting passage in docs 2025-03-06 11:54:00 -10:00
Dmitry Astapov
4f9fff9e81 ;repl: added to the list in Commands.hs 2025-03-06 11:54:00 -10:00
Dmitry Astapov
61faca16e4 run: split run and repl, fix journal passed to nested "run"s 2025-03-06 11:54:00 -10:00
Dmitry Astapov
a7116a8b0f ;run: missed a spot for replaceNumericFlags 2025-03-06 11:54:00 -10:00
Dmitry Astapov
e67bef1b0c ;run: expand docs (nested run, more examples) 2025-03-06 11:54:00 -10:00
Dmitry Astapov
b5f5c39d48 run: properly retrieve cached files when there are nested "run"s 2025-03-06 11:54:00 -10:00
Dmitry Astapov
e665bf124d ;run: handle reader prefixes properly 2025-03-06 11:54:00 -10:00
Dmitry Astapov
a76d23957f ;run: fix typo in the REPL help message 2025-03-06 11:54:00 -10:00
Dmitry Astapov
cf05ccb8e4 ;run: comments 2025-03-06 11:54:00 -10:00
Dmitry Astapov
8431cbe95b run: do not try to cache "top-level" journal more than once 2025-03-06 11:54:00 -10:00
Dmitry Astapov
5bd9be2189 run: allow "run" to invoke "run" (fixes #2331) 2025-03-06 11:54:00 -10:00
Dmitry Astapov
88a4b0abae run: support @ARGFILEs (fixes #2330) 2025-03-06 11:54:00 -10:00
Dmitry Astapov
6569714d37 run: cache individual files rather than file groups 2025-03-06 11:54:00 -10:00
Dmitry Astapov
32f286cc35 run: cache all journal files, allow commands to use -f 2025-03-06 11:54:00 -10:00
Simon Michael
aee85df17b ;dev:cli: to help run's command line parsing, double the first -- [#2328]
So that when cmdargs eats it, another remains.
2025-03-06 09:56:25 -10:00
Simon Michael
0b20e11857 ;dev:moveFlagsAfterCommand: doc edits 2025-03-06 07:53:05 -10:00
Simon Michael
e6bf705de0 fix:moveFlagsAfterCommand: don't rearrange things after -- [#2328]
Helps the run command.
2025-03-06 07:25:48 -10:00
Simon Michael
40b40fc2c8 ;dev:moveFlagsAfterCommand: note a problem [#2328] 2025-03-06 06:56:34 -10:00
Simon Michael
f97954a796 dev:commands: don't require a journal file 2025-03-05 11:37:25 -10:00
Simon Michael
4eb98a761a ;doc: update command docs 2025-03-05 11:10:49 -10:00
Simon Michael
34ba84ff9c feat: commands, an explicit command to show the commands list; refactor 2025-03-05 11:10:42 -10:00
Simon Michael
cb373447db fix:cli:paging: support older less, don't pass --use-color [#2335]
Older less versions (eg 551) require --use-colour, and break if --use-color is passed. So we no longer attempt to enable colour in less by default.
2025-03-04 16:38:25 -10:00
gesh
f450379229 ;cln: Remove unused widthFromOpts (see 5c289ac)
As noted in 5c289ac, it is unused elsewhere, and registerWidthsFromOpts
is right next to it and implements nearly the exact same logic
2025-03-04 16:26:15 -10:00
gesh
a1bcdcd157 ;cln: Remove unused debugArgs
A variant of it is present as a local definition in getHledgerCliOpts'
2025-03-04 16:26:15 -10:00
Simon Michael
6a90d503bc ;doc: csv: tiny fix [#2333] 2025-03-01 11:22:38 -10:00
Thomas Miedema
2faceb8e1b feat: csv: allow multiple matchers on the same line
`If blocks` and `If tables` now allow multiple matchers on the same line
separated by `&&` (AND) or `&& !` (AND NOT).

Example `if block` with two matchers on the same line:

	if %description amazon && %date 2025-02-22
	    account2 expenses:books

Example `if table` with two matchers on the same line:

	if,account2
	%description amazon && %date 2025-02-22, expenses:books
2025-03-01 11:21:00 -10:00
Simon Michael
a65900c62d imp:cli: recognise .ysh, .osh file extensions as addons 2025-02-27 21:26:57 -10:00
Simon Michael
956a2f6565 ;doc: manuals: update command options 2025-02-27 15:26:17 -10:00
Simon Michael
b629c31f9a ;doc: manuals: remove obsolete mentions of COLUMNS [#2340] 2025-02-27 15:26:17 -10:00
Simon Michael
d346e56b79 dev: fix warnings, update yaml file, edit [#2340] 2025-02-27 13:41:48 -10:00
gesh
3fa39c17b3 dev: Remove usage of partial NE.fromList
At this point, we're just giving a default for unpacking a Maybe
2025-02-27 13:41:48 -10:00
gesh
cde77eace0 fix: Remove references to $COLUMNS
As noted in Hledger.Utils.IO, COLUMNS is a bashism that isn't
particularly usable for our purposes (for one thing, it isn't updated
when the terminal is resized)
2025-02-27 13:41:48 -10:00
gesh
a24c39f13f fix: Use POSIX API to compute tty width (#2332)
On some systems, TERM is set to a value that doesn't have a valid
terminfo entry. Rather than hackily fall back on a value for TERM that
appears to work in most contexts (TERM=dumb) but which isn't guaranteed
anywhere to be valid, use proper POSIX ioctls to get the tty width.

This has the added bonus of also working on Windows.

In fact, we already settled on computing the terminal size in this way
in hledger-lib, so this commit centralizes the choice of the logic
there.

Also added a note for alternative methods and their tradeoffs, in case
this turns out to be fragile on some systems.
2025-02-27 13:41:48 -10:00
Thomas Miedema
1ca90065db ;dev: fix hledger/bench/bench.hs
In commit 603b2e9f09, the signature of `readJournalFile` changed. Ever
since, `bench/bench.hs` did not compile. Fix it by using the "easy"
function `readJournalFile'` instead, which assumes default options and
returns in the IO monad.
2025-02-27 07:32:44 -10:00
Thomas Miedema
5129a94bd7
;cln: unittest.hs: remove bothersome PackageImports (#2337)
When running `cd hledger-lib && ghci test/unittest.hs`, ghci complains
with:

```
  test/unittest.hs:7:1: error:
      Could not find module ‘Hledger’
      It is not a module in the current program, or in any known package.
    |
  7 | import "hledger-lib" Hledger (tests_Hledger)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  Failed, no modules loaded.
```

This commit removes the "hledger-lib" package-qualified import, such
that above ghci command works as expected.

However, there is a comment in hledger-lib/test/unittest.hs that says:

> package-qualified import to avoid cabal missing-home-modules warning
> (and double-building ?)

The missing-home-modules warning and the double building can indeed be
reproduced by running (after removing the "hledger-lib"
package-qualified import): `cd hledger-lib && cabal build unittest`. It
will first build `hledger-lib`, then show a warning about
missing-home-modules, and then build `hledger-lib` again.

After comparing the unittest sections of hledger.cabal and
hledger-lib.cabal, the solution turned out to be to remove `./` from
hs-source-dirs for unittest. Don't ask me why though!

Overall it's a nice cleanup.
2025-02-26 11:54:59 -10:00
Simon Michael
d807d7bd0c ;imp:bal: improve --layout option description 2025-02-23 12:25:48 -10:00
Simon Michael
d4884def4b ;doc:shell completions: mention zsh; cleanups 2025-02-21 17:16:40 -10:00
Simon Michael
7ef96d4bd1 fix:bal --budget: don't let costs prevent showing a percentage [#2327] 2025-02-18 12:17:47 -10:00
Simon Michael
35df9576ec doc:text encoding, csv encoding: cleanups [#2319] 2025-02-15 14:49:00 -10:00
Joschua Kesper
5114962b2a feat:csv: add an encoding rule, allowing non-UTF8 CSV to be read [#2319]
Previously, hledger could read CSV files containing non-ascii
characters only if they are UTF8-encoded.  Now there is a new CSV
rule, encoding ENCODING, which allows reading CSV files with other
encodings.

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

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

This also changes the type of Reader's rReadFn; it now takes
a `Handle` rather than a `Text`, allowing more flexibility.
2025-02-15 14:48:30 -10:00
Dmitry Astapov
d84050ec05
feat:run: run multiple commands efficiently, as a script or at a REPL (Dmitry Astapov, #2323) 2025-02-13 16:13:07 -10:00
Simon Michael
fbbe897133 ;doc:hledger:cost/lot notations: cleanups 2025-02-06 12:16:10 -10:00
Simon Michael
d435cf2ab4 ;doc:value reporting: edits 2025-02-05 10:38:13 -10:00
Simon Michael
3f1b6e6c8b ;doc:value reporting: edits 2025-02-05 10:35:23 -10:00
Simon Michael
27e51edbf4 ;doc:cost, value reporting: edits 2025-02-05 10:26:05 -10:00
Simon Michael
63b939a201 imp:print: --invert now also negates balance assertion/assignment amounts [#2314] 2025-01-29 09:47:29 -10:00
Simon Michael
3e838e4d0f imp:print: support --invert [#2314] 2025-01-27 05:21:36 -10:00
Simon Michael
b3e50f5e59 fix:bal:html output: also suppress total heading when -H is active 2025-01-25 20:38:09 -10:00
Simon Michael
29885d15fa dev: refactor Hledger.Write.Html etc, reducing Lucid references
Clarify the HTML lib situation a bit, and clean up some imports.

Related: #2244
2025-01-25 11:53:51 -10:00
Simon Michael
14dd2c6200 dev: rename printHtml -> styledTableHtml 2025-01-25 11:53:51 -10:00
Dmitry Astapov
9d4db48510 ;roi: optimize "one period per report interval" case a bit 2025-01-21 23:42:36 -10:00
Simon Michael
a359d6b828 ;doc: Directive effects: fix account types link [#126] 2025-01-21 23:39:15 -10:00
Simon Michael
31370bb65d ;doc: update command docs 2025-01-21 23:22:34 -10:00
Simon Michael
4614300d6a ;fix:print: --help was indicating wrong --round default [#2318] 2025-01-21 23:15:15 -10:00
Simon Michael
adef1a8416 lib: add dropRawOpt, cliOptsDropArgs 2025-01-21 22:02:05 -10:00
Simon Michael
54e7a178b3 ;doc:commodity styles: fix typo [hledger_site#123] 2025-01-21 21:36:25 -10:00
Simon Michael
91529191cd ;doc:cost/lot notations: clarify 2025-01-21 21:36:25 -10:00
Simon Michael
51e7ebae3d ;doc:cost/lot notations: clarify 2025-01-21 15:57:00 -10:00
Simon Michael
06abca7304 ;doc:cost/lot notations: clarify 2025-01-21 15:54:04 -10:00
Simon Michael
8d886ef3f4 ;doc:cost/lot notations: clarify 2025-01-21 15:40:27 -10:00
Simon Michael
b7deaea12e ;doc:cost/lot notations: clarify 2025-01-21 15:32:47 -10:00
Simon Michael
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