Commit Graph

11409 Commits

Author SHA1 Message Date
Simon Michael
ae26ae6294 ;bin: hledger-git: status command also shows diffs 2023-02-02 21:12:16 -10:00
Simon Michael
679f62cc60 ;dev: pr template: mention COMMITS page and prefix convention (#1997) 2023-02-01 13:30:21 -10:00
Simon Michael
1e1b26261d ;fix: bin: hledger-git: add short command aliases r, s, l 2023-02-01 13:30:21 -10:00
Simon Michael
e986bdf2d5 ;fix: bin: hledger-git: fix -h; pass unrecognised commands to git 2023-02-01 13:30:21 -10:00
Simon Michael
c477c59247 ;fix: bin: hledger-git: don't forcibly add ignored files 2023-02-01 13:30:21 -10:00
Simon Michael
c8c920cbe0 ;fix: bin: hledger-git: fix status command 2023-02-01 13:30:21 -10:00
Simon Michael
c51ebe7b8c imp: journal: remove the "adjacent conversion postings" check again
I find that single conversion postings are sometimes needed, eg with
paypal.
2023-02-01 13:30:21 -10:00
J. B. Rainsberger
c7eb9aa944 ;doc: Removed redundant paragraph in documentation. 2023-02-01 13:28:17 -10:00
Simon Michael
5ad1aab288 ;bin: rename hledger-script-example.hs; use fewer imports and deps 2023-01-29 16:57:14 -10:00
Simon Michael
b49b760497 ;bin: a version of hledger-register-max using a newer API
This one uses Hledger.Cli.Script to reduce import boilerplate,
and supports --help.
2023-01-29 16:29:58 -10:00
Simon Michael
98949beec3 ;cabal: update cabal files 2023-01-29 16:29:35 -10:00
Simon Michael
3f3401f8ad imp: cli: Hledger.Cli.Script convenience import for scripts
Hledger.Cli.Script is a convenient prelude for use in scripts,
reducing import boilerplate. It currently re-exports:

Control.Monad
Data.Either
Data.List
Data.Maybe
Data.Ord
Data.Time
Text.Printf hiding (formatString)
Data.Text (Text, pack, unpack)
Safe hiding (at)
System.Directory
System.Environment
System.Exit
System.FilePath
System.Process
Hledger
Hledger.Cli
Hledger.Cli.Main (argsToCliOpts)

but not (much of) Data.Text or Data.Text.IO, as those
need to be imported qualified.
2023-01-29 16:29:18 -10:00
Simon Michael
6589b506ed ;bin: register-max: tweaks 2023-01-29 08:14:15 -10:00
Simon Michael
173985dbfc ;bin: register-max: show multiple postings, better layou 2023-01-29 08:03:47 -10:00
Simon Michael
7f8f98707d ;bin: register-max: cleanup 2023-01-29 07:12:16 -10:00
Simon Michael
dc8e0f66de ;bin: register-max: don't add -H by default 2023-01-29 06:58:52 -10:00
Simon Michael
82abb00754 ;bin: register-max 2023-01-29 06:43:42 -10:00
Simon Michael
0f5857d94f ;pkg: stack: drop allow-newer, should be no longer needed 2023-01-28 23:03:11 -10:00
Simon Michael
66859fedb8 ;doc: account types edit 2023-01-28 23:02:33 -10:00
Simon Michael
53efb49c77 fix: cli: use black or white for banner & version, maximising legibility 2023-01-27 17:01:06 -10:00
Simon Michael
9381b46004 fix: lib: fix terminal lightness detection 2023-01-27 16:51:05 -10:00
Simon Michael
79914cbe74 fix: cli: avoid showing color detection escape sequence when piped 2023-01-27 10:50:56 -10:00
Simon Michael
110711a2a2 fix: cli: restore workaround to avoid showing escape codes in emacs 2023-01-27 10:00:07 -10:00
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