Commit Graph

11728 Commits

Author SHA1 Message Date
Simon Michael
3f08394c6c ;doc: update changelogs 2023-05-31 22:03:50 -10:00
Simon Michael
5048c89608 ;doc: CHANGELOGS: update 2023-05-31 22:02:26 -10:00
Simon Michael
c6afab813c ;examples:csv: Makefile: update status 2023-05-31 21:59:43 -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
438891b2c5 ;dev: stack: bump to nightly-2023-05-31 2023-05-31 18:57:30 -10:00
Simon Michael
c008dd83b6 ;doc: ROADMAP: update 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
d92d4127af ;cln:doc: convert .html links to .md (which work in Obsidian) 2023-05-31 08:49:32 -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
b0e5bb4bc7 ;imp:doc: ui, web: options cleanup 2023-05-30 22:35:01 -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
502b80ad81 ;dev: push: ensure git's pager doesn't stop progress 2023-05-27 12:47:32 -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
d7f0398542 ;cln: doc: fix garbled haddock for journalDateSpan, journalDateSpanBothDates
hopefully
2023-05-27 12:01:20 -10:00
Simon Michael
95cedd465f ;doc: github release doc: windows updates 2023-05-27 10:40:21 -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
6b3dd79542 ;dev: make copy-exe*/install-as*: install binaries to bin/old/ 2023-05-27 08:56:05 -10:00
Simon Michael
d19d866446 fix: use costs when balancing a txn with a balance assignment (fix #2039)
Transaction balancing is supposed to balance costs, but these were
being stripped when calculating balance assignments, causing us to
wrongly reject this transaction when the last amount is left implicit,
unlike Ledger:

2023-01-01
    Assets                AAA -1.1 @@ CCC 2
    Assets                BBB -1.2 @@ CCC 3
    Expenses:Fees         CCC  0.2
    Assets                                  = CCC 4.9

I'm not sure why costs were being stripped. I seem to have added it
in 2019 (to Journal.balanceNoAssignmentTransactionB in 3b47b58ae),
but this bug seems to be present even before that.
2023-05-27 08:34:11 -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
c8c5f96ed0 ;cln:doc: ui, web manuals: drop redundant FILES section 2023-05-26 09:01:32 -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
b8f1a67503 ;doc: FILES update 2023-05-24 18:51:45 -10:00
Simon Michael
766657cb09 ;doc: forecasting: mention --verbose-tags 2023-05-24 12:37:46 -10:00
Simon Michael
5e55258e59 ;bin: bar: help tweak 2023-05-23 17:14:47 -10:00
Simon Michael
d3079c9066 ;dev: make install-as-%: save in bin/old/ instead 2023-05-23 17:14:01 -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
e832c344c1 dev: comment 2023-05-20 17:29:06 -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
ddae3af8a3 lib: Hledger.Utils.IO: added expandGlob, sortByModTime 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
3d2ef21081 lib: Hledger.Utils.IO: more robust monochrome pretty/debug printing 2023-05-18 07:19:36 -10:00
Simon Michael
83de76b67a lib: Hledger.Utils.IO: avoid excessively wide "compact" prettyprinting 2023-05-18 07:19:36 -10:00
Simon Michael
76f336695c lib: Hledger.Utils: added multicol 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
3961dbc044 dev: ghci: disable color, which sometimes obscures pretty-printed output 2023-05-18 07:12:51 -10:00