Simon Michael
70ef3e816c
fix: stats: fix a regression in date display since 1.28 ( #2012 )
2023-03-16 14:52:37 -10:00
Simon Michael
62bb93af9c
imp: lib: Hledger.Cli.Script: more re-exports
...
added:
Control.Applicative
Control.Concurrent
Data.Char
Data.Functor
System.IO
System.IO.Error
2023-03-16 14:36:29 -10:00
Simon Michael
d012384d57
;dev: cli: also build with GHC 9.6.1
2023-03-14 10:49:58 -10:00
Yehoshua Pesach Wallach
7ddcf3b9e1
fix: doc: remove duplicate in hledger close docs
2023-03-13 09:23:18 -10:00
Simon Michael
af38121442
imp: areg: when restricted by extra query args, show a hint in title
...
I was confused when using 'areg ACCT QUERY'. Now, the title will show
" (matching query)" as a hint when a QUERY is specified,
except when it is a date restriction (which is common and not confusing)
or a depth restriction (which is ignored).
2023-02-21 08:29:59 -10:00
Simon Michael
25b8d51ff2
activity: fix output after #1982 ; add tests
2023-02-21 07:17:21 -10:00
Simon Michael
70539a70bd
;cli: consolidate commands overvinew; sync commands list
2023-02-21 00:35:14 -10:00
Simon Michael
4d66f48a47
;doc: update CLI help text files
2023-02-21 00:16:46 -10:00
Simon Michael
2e6cf0e806
;imp: cli: commands list: better hledger-fifo entries
2023-02-20 22:15:58 -10:00
Simon Michael
c74f72ff40
;imp: cli: commands list: add an entry for hledger-fifo
2023-02-20 21:58:13 -10:00
Simon Michael
0db44f11bb
;doc: update CLI usage texts
2023-02-20 16:24:54 -10:00
Simon Michael
2eaab54426
imp: close: more useful defaults, retain/migrate/open modes
2023-02-20 16:24:54 -10:00
Simon Michael
173f61bee0
dev: Commands: cleanup, fix harmless bug in command finding
2023-02-20 16:24:54 -10:00
Simon Michael
0567935e4b
cli: simplify command doc inclusion, give them normal heading structure
2023-02-20 16:24:54 -10:00
Simon Michael
81f596b1fb
cli: fix some Commands file permissions
2023-02-20 16:24:54 -10:00
Michael Grünewald
4b43e63a89
fix: cli: don't crash multicol with few strings
...
When there are only few, short strs and width is large, then the div
operation in itemspercol would return zero, triggering and error in
chunksOf.
This fix makes numcols have always at least as many entries as strs,
filling one line.
2023-02-19 11:52:46 -10:00
Simon Michael
fa70f160ae
imp: partial/inferred dates are flexible, full dates are not ( #1982 )
...
DateSpans are now now aware of exact/flexible dates.
2023-02-17 07:24:19 -10:00
Simon Michael
7a9b0fd94c
feat: check: the tags check checks tag names
2023-02-16 11:56:22 -10:00
Simon Michael
8aca6ff84b
;doc: import: tweak
2023-02-16 04:37:45 -10:00
Simon Michael
e34a20f3db
;doc: import: note a pitfall with multifile import
2023-02-15 20:09:20 -10:00
Jonathan Dowland
15eadd58ce
feat: aregister: implement HTML output formatter ( #1996 )
...
The HTML formatter outputs a HTML snippet containing a table with a
header row and one data row per report item. The header row names
match those for the CSV output formatter. Multiple commodities in
a report item are listed together in the same cell separated by
commas, again matching the CSV formatter.
A future extension could be to explore using multiple rows for
multiple commodities, with HTML row spanning.
Fixes #1996 .
Signed-off-by: Jonathan Dowland <jon@dow.land>
2023-02-09 10:53:09 -10:00
Simon Michael
9106c9013f
;doc: bal: budget: fix lists
2023-02-04 14:54:54 -10:00
Simon Michael
3fea3b0db7
;doc: bal: budget: compare with forecasting; add some tips
2023-02-04 14:47:01 -10:00
Simon Michael
b8e538a57f
;doc: bal: --budget: clarify use of print --forecast
2023-02-04 10:37:14 -10:00
Simon Michael
513b6b5164
;doc: check: adjacentconversionpostings was dropped
2023-02-04 08:03:54 -10:00
Simon Michael
da5b4667df
;doc: rename directive sections, fix many links
2023-02-04 08:01:47 -10:00
Simon Michael
89b699e78e
;doc: cli: fix all links to Journal > Tags / Commands > tags
2023-02-04 07:05:58 -10:00
Simon Michael
4eeafdc4d3
dev: delete strange old remnant of the checkdates command, causing HLS trouble
2023-02-04 06:42:05 -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
53efb49c77
fix: cli: use black or white for banner & version, maximising legibility
2023-01-27 17:01:06 -10:00
Simon Michael
eed8a06906
fix: cli: don't highlight help when TERM=dumb
2023-01-27 06:06:17 -10:00
Simon Michael
7a636dd428
imp: cli: non-bold version string
2023-01-26 23:17:58 -10:00
Simon Michael
45808c8e13
imp: cli: add terminalLightness; tweak IsLight threshold; embolden banner
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
72cd441a9f
imp: cli: add a little highlighting to help output
2023-01-25 19:16:09 -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
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
1b3b26895e
;doc: update CLI usage texts
2023-01-25 11:59:05 -10:00
Simon Michael
311f0c99eb
;doc: areg: more advice on account-matching
2023-01-25 11:19:03 -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
dbb1441402
;doc: update CLI usage texts
2023-01-10 23:34:14 -10:00
Simon Michael
a7bb6dc5b5
fix: stats: remove wrong mention of output format in help
2023-01-10 23:30:15 -10:00
Simon Michael
e891eecb8b
dev: add TypeOperators pragma to satisfy ghc 9.4
2023-01-10 19:33:31 -10:00
Simon Michael
1ea2c41bf7
imp: lib: registerWidthsFromOpts: fix ugly parse error message
2023-01-10 17:07:54 -10:00
Simon Michael
5c289ac92e
lib: drop unused widthFromOpts
2023-01-10 17:07:19 -10:00
Simon Michael
af9f8c0416
;doc: add: payees/descriptions completion
2023-01-04 19:58:05 -10:00
Simon Michael
b5ed655b49
imp: add: Description completions now include payees declared or used
...
Ie as well as full descriptions, it now also offers payee names which
have been declared with a payee directive, or recorded in transactions
with the | syntax.
2023-01-04 19:46:06 -10:00