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
fffae7f578
;doc: main module haddock cleanups
2023-10-04 10:03:35 +01:00
Simon Michael
40037afaf1
lib!: export less from cli and web packages, and more from ui
2023-10-04 10:03:35 +01: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
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
d1e62f38a2
;ui: help dialog: mention that LEFT shows other screens
2023-02-15 16:47:49 -10:00
Simon Michael
74f9cd866c
dev: ui: commit missing change for brick 1.5
2022-11-26 08:50:28 -05:00
Simon Michael
0b9c01253b
imp: ui: simplify screen names on menu screen
2022-11-08 12:39:20 -10:00
Simon Michael
a485a5ebe7
imp: ui: ENTER key is equivalent to RIGHT for navigation
2022-11-07 17:03:06 -10:00
Simon Michael
892eb06396
;dev: ui: replace "curses interface" with TUI
2022-11-07 16:48:54 -10:00
Simon Michael
82aa8f1975
imp: ui: bs/is screens: clarify balance/changes in header/footer
2022-11-07 16:10:56 -10:00
Simon Michael
a726be0e28
imp: ui: add flags to select starting screen
2022-11-07 16:04:39 -10:00
Simon Michael
1a526b82c9
imp: ui: debug log startup args, debug level, initial screen stack
2022-11-07 14:52:42 -10:00
Simon Michael
da569e51e1
imp: ui: improve debug logging helpers, log screen stack on each event
2022-11-07 14:51:45 -10:00
Simon Michael
05aeedf6c9
imp: ui: start on all accts scrn if no bs accts detected, or with an acct query
2022-11-07 09:42:21 -10:00
Simon Michael
b0966adc93
dev: debug logging: ".log" suffix instead of ",logging"; improve docs
2022-11-06 09:01:12 -10:00
Simon Michael
9a8a8a75a2
imp: ui: start on balance sheet screen: better initial screen stack
2022-11-06 07:59:45 -10:00
Simon Michael
06bc09a36f
dev: comments
2022-11-06 07:59:45 -10:00
Simon Michael
4a35945a8f
imp: ui: start on balance sheet accounts screen
2022-11-04 23:16:40 -10:00
Simon Michael
988c164ec8
imp: debug logging improvements; hledger-ui logs to hledger-ui.log only
...
Hledger.Utils.Debug's "trace or log" functions are now controlled as
follows: to enable logging, append ",logging" to the program name at
startup (using withProgName). This also works when running in GHCI.
And they log to PROGNAME.log, not debug.log.
All (hopefully) debug logging in the hledger packages is now "trace or
log" capable.
This means that hledger-ui should now log all debug output to
./hledger-ui.log, with none of it appearing on the console.
2022-11-03 16:07:54 -10:00
Simon Michael
c25c5cef44
fix: make no-argument --debug flag work with ui & web also
2022-11-03 08:13:58 -10:00
Simon Michael
9a9ebfc0e3
dev: ui: rename hledger-ui debug helpers
2022-10-31 12:42:09 -10:00