Commit Graph

3125 Commits

Author SHA1 Message Date
Simon Michael
1192d8a057 ;doc:cli: document expr: and queries a little better 2023-06-08 06:40:16 -10:00
Simon Michael
3357c27390 fix: accept entries with unmatched equity conversion postings (#2045)
Since 1.29, we unconditionally run part of the --infer-cost logic to
identify redundant costs/equity postings. This was too strict, raising
an error whenever it could not find postings matching the equity
postings.  Now we do this (and also the explicit --infer-costs
operation) as a best effort, leaving transactions unchanged if we
can't detect matching postings. This is consistent with
--infer-equity, --infer-market-prices, -B and -V.
2023-06-06 20:44:03 -10:00
Simon Michael
57cc76ae2e ;doc: update changelogs 2023-06-02 10:25:24 -10:00
Simon Michael
98d53b42e4 ;dev:cli: avoid breakage with old haddock versions in Demo.hs 2023-06-02 10:22:49 -10:00
Simon Michael
5410f87953 ;doc: update changelogs 2023-06-02 08:07:52 -10:00
Simon Michael
5e0127c937 ;cabal: update cabal files 2023-06-02 07:50:23 -10:00
Simon Michael
9f5e85ef60 fix:cli: add missing files to Hackage release 2023-06-02 07:49:37 -10:00
Simon Michael
21d6b00597 ;doc: update manuals 2023-06-01 16:35:11 -10:00
Simon Michael
2a3941682b ;doc: update command help 2023-06-01 16:34:57 -10:00
Simon Michael
286ee105da ;cabal: update cabal files 2023-06-01 16:34:52 -10:00
Simon Michael
9ae87a73fa ;pkg: bump version to 1.30.99 2023-06-01 16:34:52 -10:00
Simon Michael
580b1f6d5a ;doc:cli: replace note about repeated options 2023-06-01 16:34:09 -10:00
Simon Michael
34c401d1cf imp: Revert "imp: cli: make some reporting flags toggle on/off when repeated"
This reverts commit 57c0205107.

Toggling means it can be hard to know if the feature is on or off.
This needs more testing.
2023-06-01 16:32:44 -10:00
Simon Michael
1b0be2b65f imp:demo: add an easy -s/--speed option, play at 2x by default 2023-06-01 16:32:40 -10:00
Simon Michael
c9f39db363 imp:demo: rename/reorder install demo 2023-06-01 16:32:36 -10:00
Simon Michael
f485b30ae0 ;cln:close: fix end date doc 2023-06-01 16:32:25 -10:00
Simon Michael
ecf266a808 ;doc: merge 1.30 changelogs 2023-06-01 16:29:35 -10:00
Simon Michael
3f08394c6c ;doc: update changelogs 2023-05-31 22:03:50 -10:00
Simon Michael
1382fbc757 ;doc:cli: update quick links 2023-05-31 19:25:21 -10:00
Simon Michael
d146b83500 ;doc: update manuals 2023-05-31 19:07:44 -10:00
Simon Michael
858135e15e ;doc: simplify man page synopses to suit website 2023-05-31 19:07:02 -10:00
Simon Michael
c008903d1e ;doc: update manuals 2023-05-31 18:57:53 -10:00
Simon Michael
f8e34e8723 ;doc:journal: improve virtual postings doc, mention inferring zero 2023-05-31 18:57:30 -10:00
Simon Michael
f7b59c8950 dev: demo: drop two confusing demos for now 2023-05-31 18:57:30 -10:00
Simon Michael
89e0c05f11 ;imp:doc:cli: trim argument files 2023-05-31 16:42:30 -10:00
Simon Michael
3ddb43663c ;cln:doc: man page cleanups 2023-05-31 16:42:11 -10:00
Simon Michael
19cc3743a8 ;doc: update manuals 2023-05-31 07:57:37 -10:00
Simon Michael
f88501314e ;imp:doc:cli: update a bunch of 2020 examples to 2023 2023-05-31 07:56:53 -10:00
Simon Michael
0e9650d816 ;imp:doc:cli: move LEDGER_FILE section down 2023-05-31 07:56:33 -10:00
Simon Michael
5c1721da22 ;imp:doc: cli: rearrange 2023-05-30 22:25:46 -10:00
Simon Michael
7c2b194bdf ;imp:doc: cli: update Options, Commands sections 2023-05-30 22:14:55 -10:00
Simon Michael
9cdc0f21b6 imp:cli: add-ons can also have .js, .lua, or .php extensions 2023-05-30 20:23:12 -10:00
Simon Michael
96cdc0cb96 fix: likelyExecutablesInPath, hledgerExecutablesInPath on windows (#2040)
Pointed out by mauke in #haskell chat: this was incorrectly splitting
PATH on windows (splitting on the : in C:\...), which meant that
people using multiple drive letters on Windows might see hledger
failing to recognise installed add-on commands.
2023-05-27 12:28:38 -10:00
Simon Michael
a12880de05 fix: typo in Hledger.Cli.CliOptions.likelyExecutablesInPath
This had a bug noticed by mauke in #haskell: it was splitting PATH
on [ and ] as well as : and ;. Hard to trigger, but now fixed.
2023-05-27 09:21:49 -10:00
Simon Michael
d2cefedffb ;doc: update manuals 2023-05-26 09:28:53 -10:00
Simon Michael
32f616f666 ;imp:doc:cli: options note 2023-05-26 09:28:03 -10:00
Simon Michael
34a6c08b03 ;imp:doc:cli: move Input section first, consolidate LEDGER_FILE docs 2023-05-26 09:01:34 -10:00
Simon Michael
6854b0b5e6 ;doc: update command help 2023-05-26 06:38:27 -10:00
Simon Michael
fda15f808c ;imp:doc:manuals: consolidate, update BUGS sections 2023-05-26 06:38:27 -10:00
Simon Michael
a717cbd300 ;cln:doc: update the manuals' brief input files descriptions
These come from the inputfiles (and new inputfileswithptr) macros,
currently used in five places in the three manuals.
2023-05-26 06:38:27 -10:00
Simon Michael
766657cb09 ;doc: forecasting: mention --verbose-tags 2023-05-24 12:37:46 -10:00
Simon Michael
4a61caefd7 fix: infer amountless unbalanced virtual postings as zero
They were effectively zero already, but print always showed them with no amount, even with -x, which was unclear.
2023-05-20 17:41:59 -10:00
Simon Michael
029b59093b feat: csv: rules files can be read directly; data file can be specified
CSV rules files can now be read directly, eg you have the option of
writing `hledger -f foo.csv.rules CMD`. By default this will read data
from foo.csv in the same directory.  But you can also specify a
different data file with a new `source FILE` rule. This has some
convenience features:

- If the data file does not exist, it is treated as empty, not an
  error.

- If FILE is a relative path, it is relative to the rules file's
  directory. If it is just a file name with no path, it is relative
  to ~/Downloads/.

- If FILE is a glob pattern, the most recently modified matched file
  is used.

This helps remove some of the busywork of managing CSV downloads.
Most of your financial institutions's default CSV filenames are
different and can be recognised by a glob pattern.  So you can put a
rule like `source Checking1*.csv` in foo-checking.csv.rules,
periodically download CSV from Foo's website accepting your browser's
defaults, and then run `hledger import checking.csv.rules` to import
any new transactions. The next time, if you have done no cleanup, your
browser will probably save it as something like Checking1-2.csv, and
hledger will still see that because of the * wild card. You can choose
whether to delete CSVs after import, or keep them for a while as
temporary backups, or archive them somewhere.
2023-05-19 09:09:21 -10:00
Simon Michael
71ef6ef478 fix: cli: commands list now shows help for hledger-lots if installed 2023-05-18 07:19:36 -10:00
Simon Michael
4c3046dea8 fix: cli: the commands list no longer lists non-installed addons (fix #2034)
And internally has been rewritten for clarity.
2023-05-18 07:19:36 -10:00
Simon Michael
ae4f58beb7 lib: Hledger.Cli.Commands: findCommand -> findBuiltinCommand 2023-05-18 07:13:58 -10:00
Simon Michael
577e4b6347 fix!: csv: skip now counts non-blank lines more robustly (fix #2024)
Inner empty lines were not being skipped automatically, contrary to
docs. Now all empty lines are skipped automatically, and the `skip`
rule is needed only for non-empty lines, as intended.

This may be a breaking change: it's possible that the `skip` count
might need to be adjusted in some CSV rules files.
2023-05-11 17:06:12 -10:00
Simon Michael
4a55a515ba ;doc: journal: change wording wrt ledger compatibility (fix (#1306) 2023-05-10 02:18:17 -10:00
Simon Michael
57c0205107 imp: cli: make some reporting flags toggle on/off when repeated
This can be useful to override defaults in scripts.
These flags will now toggle when repeated on the command line:

--invert
--transpose
-r/--related
-%/--percent
-E/--empty
-N/--no-total
-T/--row-total
-A/--average
-S/--sort-amount
2023-05-09 11:10:12 -10:00
Simon Michael
2d03148d7f dev: lib: drop unused pragma 2023-05-09 10:03:15 -10:00