Simon Michael
eed8a06906
fix: cli: don't highlight help when TERM=dumb
2023-01-27 06:06:17 -10:00
Simon Michael
bb5d473955
fix: lib: don't use $PAGER when TERM=dumb
2023-01-27 06:01:49 -10:00
Simon Michael
7a636dd428
imp: cli: non-bold version string
2023-01-26 23:17:58 -10:00
Simon Michael
dc35fd173b
pkg: stack: another extra dep needed
2023-01-26 22:25:24 -10:00
Simon Michael
45808c8e13
imp: cli: add terminalLightness; tweak IsLight threshold; embolden banner
2023-01-26 22:11:20 -10:00
Simon Michael
3ae9a5e0bc
;cabal: update cabal files
2023-01-26 22:11:20 -10:00
Simon Michael
9c7144e939
imp: cli: pick help accent color to contrast with terminal bg when possible
2023-01-26 22:11:20 -10:00
Simon Michael
1da4fd1eaf
imp: lib: terminal colour detection
...
added:
terminalIsLight
terminalFgColor
terminalBgColor
2023-01-26 22:11:20 -10:00
Simon Michael
9ab8818368
dev: ci: actions/checkout: v2 -> v3
2023-01-26 22:04:04 -10:00
Simon Michael
6ebf811095
dev: ci: actions/cache: v2 -> v3
2023-01-26 22:04:04 -10:00
Simon Michael
72cd441a9f
imp: cli: add a little highlighting to help output
2023-01-25 19:16:09 -10:00
Simon Michael
0de3acabcb
cabal: update cabal files
2023-01-25 19:16:08 -10:00
Simon Michael
4387e6ffb5
pkg: stack: bump to latest snapshots, depend on text-ansi, add extra deps
2023-01-25 19:15:45 -10:00
Simon Michael
de330bdfce
imp: journal: check for adjacent conversion postings only in strict mode
...
This avoids breaking existing journals if, say, they happen to have
a single "equity:trading" posting somewhere.
2023-01-25 19:00:29 -10:00
Simon Michael
9c5bcfea85
dev: transactionInferCostsFromEquity: clarify partitionPs
2023-01-25 19:00:29 -10:00
Simon Michael
6d849e06f5
;doc: journal: redundant costs
2023-01-25 19:00:29 -10:00
Simon Michael
76f8eaf91a
imp: journal: ignore redundant costs; --infer-costs more robustly
...
You can now write both @/@@ costs and corresponding equity conversion postings
in a transaction at any time, not just when using --infer-costs or --infer-equity.
hledger will recognise the redundancy and ignore it.
One thing has become more strict: hledger now requires conversion postings
to occur in adjacent pairs; an odd number of them is not allowed.
(Conversion postings are postings to accounts of type `V`/`Conversion`,
or named `equity:conversion`, `equity:trade`, `equity:trading`,
or subaccounts of these.)
And, --infer-costs now works in transactions with an implicit amount
(inferring costs from equity now happens after transaction balancing,
not before).
2023-01-25 19:00:29 -10:00
Simon Michael
7432769d3c
lib: add journalMarkRedundantCosts to help with balancing; slight refactoring
2023-01-25 19:00:29 -10:00
Simon Michael
dd1ded3646
;cabal: update cabal files
2023-01-25 17:25:34 -10:00
Simon Michael
d77d76e17f
imp: cli: use $PAGER when help output is taller than terminal
...
This works with hledger, hledger -h and hledger CMD -h.
2023-01-25 17:20:27 -10:00
Simon Michael
093fdda7db
;imp: cli: commands list tweaks
2023-01-25 15:20:15 -10:00
Simon Michael
b140529465
;doc: update manuals
2023-01-25 11:59:12 -10:00
Simon Michael
1b3b26895e
;doc: update CLI usage texts
2023-01-25 11:59:05 -10:00
Simon Michael
811ff64e30
;doc: mockups: move lots to website
2023-01-25 11:37:01 -10:00
Simon Michael
311f0c99eb
;doc: areg: more advice on account-matching
2023-01-25 11:19:03 -10:00
Simon Michael
270e5cea5d
;doc: mockups: lots
2023-01-25 11:18:46 -10:00
Simon Michael
653a2e6030
;doc: mockups: help.txt -> help.org
2023-01-25 11:18:08 -10:00
Simon Michael
fbbae55101
imp: cli: merge register-match with register command
...
register-match is now the --match mode of the register command.
It was used by ledger-autosync at one point, hopefully the new flag
works similarly.
2023-01-25 10:44:12 -10:00
Simon Michael
1899b43073
imp: cli: drop the print-unique command
...
It disorders same-day transactions, doesn't support print's options,
and isn't useful enough to be always shown in the builtin commands
list. I don't know of any users, or a use for it, and it could easily
be recreated as an addon script, so I'm inclined to not bother
supporting it as a hidden command.
2023-01-25 10:44:12 -10:00
Simon Michael
cce63e6816
imp: cli: reorganise commands list; add a banner; multicolumn addons
2023-01-25 10:44:12 -10:00
Simon Michael
e1cbe256d4
dev: tools: make copy-*: add .FOO suffix, not -FOO like addons
2023-01-25 10:44:12 -10:00
Simon Michael
8a139ac939
;doc: web: improve --base-url description ( #1562 )
2023-01-24 14:06:51 -10:00
Simon Michael
39d5426c9d
imp: install: code cleanups.
2023-01-24 13:56:22 -10:00
Simon Michael
64cd01d668
imp: install: check for pip install tool
2023-01-24 13:56:22 -10:00
Simon Michael
04a2ed2cd1
imp: install: also install hledger-edit, hledger-plot
2023-01-24 13:56:22 -10:00
Simon Michael
9f29c97b80
imp: install: add support for installing python packages
2023-01-24 13:56:21 -10:00
Simon Michael
454ee5ed74
imp: install: stack/cabal update more quietly
2023-01-24 13:56:21 -10:00
Simon Michael
82880dfc96
imp: install: align install status list
2023-01-24 13:56:21 -10:00
Simon Michael
b27a8a1ee4
imp: install: cleanups
2023-01-24 13:56:21 -10:00
Simon Michael
8cc35ba613
imp: install: bump version
2023-01-24 13:56:21 -10:00
Simon Michael
6c0ca69357
imp: install: help cleanups
2023-01-24 13:56:21 -10:00
Simon Michael
2ae0b6e439
imp: install: show quiet ('error') stack output by default
2023-01-24 13:56:21 -10:00
Simon Michael
5174b71a1d
imp: install: whitespace fix
2023-01-24 13:56:21 -10:00
Simon Michael
48e90be82a
imp: install: don't list hledger-install.sh in PATH, seems confusing
2023-01-24 13:56:21 -10:00
Simon Michael
0298a953e7
imp: install: bump minimum stack version to 2.5.1 (a guess)
2023-01-24 13:56:21 -10:00
Simon Michael
55b828890d
imp: install: drop hledger-iadd for now
...
https://github.com/hpdeifel/hledger-iadd/issues/71
2023-01-24 13:56:21 -10:00
Simon Michael
9d78f0f422
imp: install: bump to latest lts-20, bump hledger-interest to 1.6.5
2023-01-24 13:56:21 -10:00
Simon Michael
c2e6121eb0
imp: install: trim stack's over-verbose version output
2023-01-24 13:56:21 -10:00
Chris Lemaire
43c9f018dc
journal: Account directives reject account names with brackets
...
Previously, the accounts passed to account directives would be stripped
of their surrounding brackets, but the required behaviour is to have
account directives plain reject bracketed accounts. This change ensures
that accounts in account directives may not start with a bracket
character.
2023-01-24 13:40:01 -10:00
Simon Michael
ce87a89ef2
Merge pull request #1988 from chrislemaire/1984-source-name-and-position-for-forecast
...
journal: json: Add source positions to forecast transactions
2023-01-23 16:27:36 -10:00