Simon Michael
20226283b8
;pkg: tweak LICENSE files, try to get github to recognise
2025-03-31 18:18:10 -10:00
Simon Michael
47bb40f838
;pkg: clean up LICENSE files, main module licensing headers
2025-03-31 18:10:19 -10:00
Simon Michael
02ef6e45e7
imp:cli: make mutually exclusive flags clearer in --help
2025-03-08 12:42:16 -10:00
Simon Michael
5f3c3f3854
fix:ui:a key: don't pass cli query args to add [ #2313 ]
2025-01-21 22:02:34 -10:00
Stephen Morgan
7168f7efc4
imp: ui: Use new DepthSpec in hledger-ui.
...
The regular expression depths are ignored, and only the flat depths are
used.
2024-12-03 08:33:21 -10:00
Gal Lakovnik Gorenec
255dc015eb
fix:ui: Fixed #2284 -- valuation and cost flags now reset each other on toggle.
2024-11-18 09:30:07 -10:00
Simon Michael
50bf401ea6
dev: split debug/ghcdebug flags, comment out the latter for now
...
Compilation with ghc-debug is failing, and it has not yet been used
for anything. Separate the flag and leave it in place but commented for now.
2024-10-24 10:44:28 -10:00
Simon Michael
4b4cc54a6a
dev:ui: cleanup
2024-10-24 10:44:28 -10:00
Simon Michael
7325b75d5b
imp: rename ghcdebug build flag to debug, and enable stack traces with it
...
Builds made with ghc 9.10+ and the 'debug' build flag, will show
(some kind of, partial) stack traces when the program ends with an
error. (And also will have ghc-debug support enabled.)
The stack traces will probably improve in due course.
2024-10-19 18:47:03 -10:00
Simon Michael
6893f342af
imp: cli,ui,web: begin controlling GHC 9.10+'s stack traces
2024-10-19 16:56:14 -10:00
Simon Michael
f5b10b2d40
dev: cleanups
2024-10-19 16:56:14 -10:00
Simon Michael
b940254025
imp:cli: detect --color more safely in most cases
...
--color now also works in a config file, like --pager, except for two
cases: it does not affect colouring of debug output, or the colouring
helpers used in the check recentassertions error message.
2024-10-19 16:28:36 -10:00
Simon Michael
711d921774
imp:cli: --no-pager -> --pager, make this and --color safe options
2024-10-19 16:28:36 -10:00
amano.kenji
f6c98ec1d6
feat(hledger-ui): add helix as a supported editor
2024-10-15 08:03:12 -10:00
Simon Michael
6225ac8a22
imp!: support ghc 9.10 / base 4.20
...
When built with ghc 9.10.1, hledger error messages are displayed
with an extra newline following them.
https://gitlab.haskell.org/ghc/ghc/-/issues/25116
2024-09-30 17:15:59 -10:00
Simon Michael
d76dff310a
imp: ui: menu screen: show narrowed period in header; cleanup
2024-07-12 13:49:33 +01:00
Simon Michael
a8f1968d4b
imp: ui: menu screen: support the shift arrow and shift T keys, for consistency
2024-07-07 23:36:33 +01:00
Simon Michael
40620666f8
imp: cli: rename --rules-file to --rules; tweak options help
...
For brevity, and consistency with --conf.
--rules-file remains supported, as a hidden option.
hledger's main mode now supports the hidden legacy flags,
as the command modes do.
2024-06-25 18:37:55 +01:00
Simon Michael
6c294e91d6
fix: ui, web: accept valueless --debug flag again
2024-06-25 18:37:55 +01:00
Simon Michael
46cda5e7de
imp: cli: allow command options to be written before the command also
...
It's clearer to write command-specific flags after the command name
argument, but that's no longer required.
(Writing non-builtin, addon-specific flags after -- is still required).
Also, give up on "obey help/doc/version flags even if there's a bad
command/flag", it's too hard to do well.
2024-06-25 18:37:54 +01:00
Simon Michael
311be367b0
;doc: cli: simplify, use generic help flags again
2024-05-31 19:54:18 -10:00
Simon Michael
c5f8444627
feat: hledger's tldr pages are now built in, accessible via --tldr
...
And a few cleanups/fixes related to flag processing.
The help flags are now listed in order of precedence.
2024-05-29 15:32:19 -10:00
Simon Michael
82230e5a1f
imp: cli: end help output with a blank line
2024-05-29 14:45:04 -10:00
Simon Michael
f88aa8f871
imp: cli: --info before --man
2024-05-29 09:37:20 -10:00
Simon Michael
a366f3aeaa
imp: ui, web, cli, all cli commands now show the general flags grouped
...
And cli/ui/web each have their own more specific help flags.
2024-05-29 09:37:19 -10:00
Simon Michael
d17b32c7eb
imp: cli,ui,web: support ghc-debug for analysing memory/profile info
...
When built with the ghcdebug flag and started with --debug=-1 (or -2
to pause at startup, or -3 to pause before exit), hledger can be
controlled by ghc-debug clients like ghc-debug-brick or a custom
ghc-debug query script.
Also, refactor version string code.
2024-05-01 13:43:04 -10:00
Simon Michael
afe9e2c6f4
dev: move journalCheckBalanceAssertions to JournalChecks
2024-04-26 18:59:45 -10:00
Simon Michael
8f1ae401f4
dev: fix some partial head/tails, silence ghc 9.8's new warnings
...
Note the headErr/tailErr calls will print stack traces if they fail
(small ones: five lines, one of which is the useful location info),
which may or may not be best UX.
2024-02-28 15:58:21 -10:00
Vekhir
de3209a2fb
fix: Hide ambiguous instance for (!?)
...
base 4.19.0.0 introduces Data.List.!? which clashes with Data.Vector.!?, the latter of which is needed for vector operations.
2024-02-18 14:55:31 -10:00
Jonathan Dowland
32328e33de
feat: ui: Add a dark theme
...
I wanted a theme with roughly the same degree of colour as the
default but which was easier on my eyes late at night.
Signed-off-by: Jonathan Dowland <jon@dow.land>
2024-02-18 14:54:31 -10:00
Simon Michael
df79aa5e35
dev: distinguish oneLineFmt and oneLineNoCostFmt; add fullZeroFmt
2024-01-23 21:35:06 -10:00
Simon Michael
0cb382cf0e
dev: rename AmountDisplayOpts -> AmountFormat, and related constants
...
noColour -> defaultFmt
noCost -> noCostFmt
oneLine -> oneLineFmt
csvDisplay -> machineFmt
2024-01-23 21:35:06 -10:00
ShrykeWindgrace
ce02f20d29
feat: support hledger-ui on windows
...
Introduced or bumped dependencies:
- brick-2.1.1
- vty-6.1
- vty-crossplatform-0.4.0.0
- vty-windows-0.2.0.1 conditionally on windows (current version of
vty-crossplatform has 0.2.0.0 as a lower bound, need to put a newer version explcitly;
once we get a newer vty-crossplatform, we will be able to drop this conditional)
- vty-unix (indirectly via vty-crossplatform)
2023-12-19 08:20:16 -10:00
ShrykeWindgrace
03808552ff
feat: add notepad as default editor for windows
2023-12-19 08:20:16 -10:00
Simon Michael
6bd862efbf
imp: ui: round amounts to display precision as before (precisiongeddon)
2023-11-14 13:23:40 -08:00
Simon Michael
4813e3fc5f
pkg:ui: fix wasteful double-building of hledger-ui modules
2023-11-07 09:06:56 -08:00
Simon Michael
7582460e50
fix:ui: V key preserves startup valuation, if any ( fix #2084 )
...
Also: hledger-ui cost/value doc improvement and a useful cost/value test file.
2023-09-12 08:36:33 +01:00
Simon Michael
d8a3c9fa3e
dev: no need to style amounts when converting to cost
2023-09-02 06:46:14 +01:00
Simon Michael
43f7ff6b35
;cln:ui: help wording
2023-06-01 16:32:33 -10:00
Simon Michael
147d49c66c
dev: cln: drop Hledger.Data.RawOptions.inRawOpts
2023-05-09 10:02:24 -10:00
Simon Michael
ad4198b5e6
fix: ui: restore the --menu flag for compatibility
2023-04-07 10:56:55 -10:00
Simon Michael
9c4b5a26fa
imp: ui, web: use a pager to show command line help, like cli
2023-04-06 15:36:08 -10:00
Simon Michael
790b6ca9da
fix: ui: add new screen missing from commit
2023-03-24 15:08:13 -10:00
Simon Michael
0f4413f011
doc: ui: note transaction screen's inability to update; code cleanup
2023-03-24 12:44:53 -10:00
Simon Michael
056553e8a9
imp: ui: improve screens' help footer
2023-03-24 11:33:36 -10:00
Simon Michael
5d69c09366
imp: ui: help tweak
2023-03-24 10:09:52 -10:00
Simon Michael
6cbf354206
imp: ui: show menu screen by default; drop the --menu flag
...
It's a simpler and more natural default; power users can use a flag to
start in the desired screen.
2023-03-24 10:07:53 -10:00
Simon Michael
3705e4c15e
imp: ui: menu: move "All accounts" screen last
2023-03-24 08:03:04 -10:00
Simon Michael
a4b3476e2f
feat: ui: add "Cash accounts" screen
2023-03-24 07:59:16 -10:00
Simon Michael
44805f96ef
;dev: ui, web: fixes for ghc 9.6; cleanup ( #2011 )
2023-03-15 20:43:51 -10:00