Simon Michael
bfb8a13c13
imp: ui: Z -> z for easier zero toggling
...
Z remains supported as a hidden legacy key.
2021-11-25 11:58:41 -10:00
Stephen Morgan
59b4968929
imp: ui: Display an error message on invalid regexp, rather than
...
silently ignoring. (#1394 )
2021-11-20 22:23:52 -10:00
Simon Michael
c11d19a893
fix: ui: scroll selection to middle on first entry, also
...
The viewport doesn't exist until after first render, and scrollSelectionToMiddle didn't need it; viewportScroll queues up events for it.
https://github.com/jtdaugherty/brick/issues/349
2021-11-20 15:33:28 -10:00
Simon Michael
710c054589
ui: listScrollPushingSelection: do scroll if there's no selection
2021-11-18 22:21:37 -10:00
Simon Michael
9f6595f122
ui: refactor, generalise listScrollPushingSelection
2021-11-18 22:21:37 -10:00
Stephen Morgan
a0f9d7560f
pkg!: Remove Hledger.Utils.Color module.
...
This module was only used in one place in Hledger.Data.Amount. The code
has been moved directly into Hledger.Utils.
2021-08-30 15:57:33 -10:00
Stephen Morgan
eb6047e81b
cln: hlint: Remove redundant where and lambda warnings.
2021-08-26 21:00:35 -10:00
Stephen Morgan
46b0745412
cln: hlint: Remove Either and Bifunctor related warnings.
2021-08-26 21:00:35 -10:00
Stephen Morgan
a3cacca71d
fix: ui: Make sure RegisterScreen (and consequently TransactionScreen)
...
only display forecast transactions when the appropriate flag is set.
2021-08-23 22:22:53 -10:00
Stephen Morgan
55308e1ca8
lib,cli,ui,web: Remove unnecessary CPP when dropping support for GHC 8.2.
2021-06-07 17:33:54 -10:00
Stephen Morgan
e3ec01c3c6
lib,cli,ui: Use Text for showDate and related.
2021-01-02 15:08:09 +11:00
Simon Michael
06675bfec4
;cli, ui: fixes for yesterday's 4330427f
2020-12-27 12:20:50 -08:00
Stephen Morgan
2fd678e415
lib,cli,ui: Remove old CPP directives made redundant by version bounds.
2020-08-29 15:08:28 -07:00
Simon Michael
53759dccc1
ui: help tweaks
2020-07-19 06:12:29 -07:00
Simon Michael
58695f9c29
ui: help tweaks
2020-07-18 12:30:37 -07:00
Simon Michael
7868da2a48
ui: ESC now restores exactly to initial app state ( #1286 )
...
Also resetFilter (DEL/BS key) no longer changes tree/list mode.
2020-07-18 12:24:37 -07:00
Simon Michael
bac3028704
ui: q exits help; improve help layout ( #1286 )
2020-07-18 08:59:21 -07:00
Simon Michael
ae830a1ace
ui: restore vi keys by popular demand; t toggles tree mode ( #1286 )
2020-07-18 08:39:23 -07:00
Simon Michael
ef8a5140b3
;ui: escape key, forgot this
2020-07-17 15:51:58 -07:00
Simon Michael
847fc23236
ui: use t/l keys for tree/list, T for "today", drop vi keys?! retune help ( #1286 )
2020-07-17 15:42:05 -07:00
Simon Michael
4eba930a5c
ui: don't force --auto/--forecast on; merge --future with --forecast ( #1193 )
...
Periodic transactions were always on, which meant that periodic
transactions occurring today were always shown, in future or present
mode.
Now, both periodic transactions and display of future transactions are
controlled by --forecast, and toggleable by the F key ("forecast
mode"). The --future flag has been dropped (it still works as a hidden
alias for --forecast, but is deprecated).
It seemed to also make sense to leave auto postings off by default,
like hledger.
2020-02-22 11:06:58 -08:00
Simon Michael
332624f9fa
ui: B and V keys toggle display of cost, value
2019-11-21 17:33:04 -08:00
Simon Michael
e83cbacbf6
;ui: help: pmi -> p/m/i
2019-10-19 18:47:39 -07:00
Caleb Maclennan
11d9e5eb6a
code: Strip extraneous trailing whitespace from Haskell sources
2019-07-15 16:40:49 +01:00
Simon Michael
98e3358046
ui: more defensive brick list imports to fix recent breakage
2019-02-02 08:22:23 -08:00
Simon Michael
fda41373f7
ui: fix build issues with older brick/snapshots, require brick 0.23+
2019-02-01 21:05:56 -08:00
Simon Michael
ad424e0381
ui: C-z suspend now restores the terminal cleanly
2019-01-23 17:26:27 -08:00
Simon Michael
cc0764eac2
ui: on posix, support ctrl-z to suspend the program
2019-01-18 16:33:06 -08:00
Simon Michael
bb5d6c47c6
ui: probably more effective redraw when pressing Ctrl-l
...
Now uses vtyRefresh.
2019-01-18 16:32:52 -08:00
Simon Michael
e6392b3d46
ui: streamline top status info
2019-01-05 18:42:03 +00:00
Simon Michael
a94e632524
ui: avoid brick reverse clash ( #935 )
2018-12-10 10:48:40 +00:00
Simon Michael
12d3ba6fc0
ui: refactor, try to clarify toggles' help
...
Consistent ordering with most-used toggles first, more intuitive wording
2018-11-04 13:54:20 -08:00
Simon Michael
42a4a4a7e4
ui: use "border" instead of borderAttr everywhere
...
Assume it won't change, it's clearer and more consistent.
2018-10-23 06:43:21 -07:00
Simon Michael
f66bb8d5c0
ui: style help headings & keys; style cleanups
2018-10-23 06:07:35 -07:00
Simon Michael
3ef8d9fc82
ui: color help dialog like the borders, make it pop
2018-10-23 05:43:42 -07:00
Simon Michael
f10f9b6a17
ui: ensure more consistent quiet style in horizontal borders ( #838 )
2018-10-23 05:41:42 -07:00
Simon Michael
cf9eb78ad2
ui: UIUtils export list, cleanup
2018-10-23 05:21:08 -07:00
Simon Michael
2a44d7eb26
ui: reorganise help dialog, fit content into 80x25 again
2018-10-18 14:43:00 -07:00
Simon Michael
1db9b018f1
ui: add --present/--future, hide future txns by default, toggle with F
...
You may have transactions dated later than today, perhaps piped from
print --forecast or recorded in the journal, which you don't want to
see except when forecasting.
By default, we now hide future transactions, showing "today's balance".
This can be toggled with the F key, which is easier than setting a
date query. --present and --future flags have been added to set the
initial mode.
(Experimental. Interactions with date queries have not been explored.)
2018-10-18 14:43:00 -07:00
Simon Michael
89712fe81d
ui: make flat the default, toggle with T, add --tree/-T/-F flags
2018-10-18 14:43:00 -07:00
Simon Michael
84579bb1b4
silence redundant import warnings with ghc 8.4
2018-03-24 22:51:56 +00:00
Simon Michael
448934d146
ui: fix manual viewing (on posix) ( fix #623 )
2017-12-30 12:59:31 -08:00
Simon Michael
190bab5c33
ui: help: tweak key order
2017-07-06 14:11:23 +01:00
Felix Yan
ffe8b47529
Update brick to 0.19
2017-06-30 22:45:34 +01:00
Simon Michael
c642be7570
ui: fix right arrow key
2017-06-30 17:18:54 +01:00
Simon Michael
97964eb2fc
ui: consistently support vi & emacs movement keys
...
hjkl and CTRL-bfnp should now work wherever unmodified arrow keys work.
(You must still use arrow keys with SHIFT for adjusting report period).
2017-06-30 16:37:10 +01:00
Simon Michael
ef5e152fde
ui: better scrolling/positioning
...
In the accounts and register screens:, you can now scroll down further
so that the last item need not always be shown at the bottom of the screen.
Also we now try to center the selected item in the following situations:
- after moving to the end with Page down/End
- after toggling filters (status, real, historical..)
- on pressing the control-l key (should force a screen redraw, also)
- on entering the register screen from the accounts screen (there's a
known problem with this: it doesn't work the first time).
Items near the top of the list can't be centered, as we don't scroll
higher than the top of the list.
2017-06-30 15:54:30 +01:00
Simon Michael
59af88b796
ui: add temporary --status-toggles for testing toggle styles ( #564 )
2017-06-18 16:20:30 -07:00
Simon Michael
22e751983b
ui: allow multiple status filters to be active at once ( #564 )
2017-06-15 19:16:39 -07:00
Simon Michael
dcc58d4a2b
lib: rename ClearedStatus type to Status
...
(and fix hard-coded enum count)
2017-06-15 19:16:39 -07:00