ui: use Z instead of E for nonzero mode
Breaking consistency with hledger cli flags, but I think it's more mnemonic, and E will more useful for something else.
This commit is contained in:
parent
b017426812
commit
c4b3a4f996
@ -280,7 +280,7 @@ asHandle ui0@UIState{
|
||||
EvKey (KChar '_') [] -> continue $ regenerateScreens j d $ decDepth ui
|
||||
EvKey (KChar c) [] | c `elem` ['+','='] -> continue $ regenerateScreens j d $ incDepth ui
|
||||
EvKey (KChar 'F') [] -> continue $ regenerateScreens j d $ toggleFlat ui
|
||||
EvKey (KChar 'E') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleEmpty ui)
|
||||
EvKey (KChar 'Z') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleEmpty ui)
|
||||
EvKey (KChar 'C') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleCleared ui)
|
||||
EvKey (KChar 'U') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleUncleared ui)
|
||||
EvKey (KChar 'R') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleReal ui)
|
||||
|
||||
@ -249,7 +249,7 @@ rsHandle ui@UIState{
|
||||
EvKey (KChar 'g') [] -> liftIO (uiReloadJournalIfChanged copts d j ui) >>= continue
|
||||
EvKey (KChar 'a') [] -> suspendAndResume $ clearScreen >> setCursorPosition 0 0 >> add copts j >> uiReloadJournalIfChanged copts d j ui
|
||||
EvKey (KChar 'F') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleFlat ui)
|
||||
EvKey (KChar 'E') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleEmpty ui)
|
||||
EvKey (KChar 'Z') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleEmpty ui)
|
||||
EvKey (KChar 'C') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleCleared ui)
|
||||
EvKey (KChar 'U') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleUncleared ui)
|
||||
EvKey (KChar 'R') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleReal ui)
|
||||
|
||||
@ -48,12 +48,12 @@ helpDialog =
|
||||
vBox [
|
||||
str "FILTERING"
|
||||
,renderKey ("/", "set a filter query")
|
||||
,renderKey ("DEL/BS", "remove filters")
|
||||
,renderKey ("C", "toggle cleared filter")
|
||||
,renderKey ("U", "toggle uncleared filter")
|
||||
,renderKey ("R", "toggle real filter")
|
||||
,renderKey ("E", "toggle nonzero filter")
|
||||
,renderKey ("Z", "toggle nonzero filter")
|
||||
,renderKey ("F", "toggle flat/exclusive mode")
|
||||
,renderKey ("DEL/BS", "remove filters")
|
||||
,str "accounts screen:"
|
||||
,renderKey ("-+0123456789", "set depth limit")
|
||||
]
|
||||
|
||||
@ -282,7 +282,7 @@ transactions/postings are shown.
|
||||
.PP
|
||||
\f[C]R\f[] toggles real mode, in which virtual postings are ignored.
|
||||
.PP
|
||||
\f[C]E\f[] toggles nonzero mode, in which only accounts with nonzero
|
||||
\f[C]Z\f[] toggles nonzero mode, in which only accounts with nonzero
|
||||
balances are shown (hledger\-ui shows zero items by default, unlike
|
||||
command\-line hledger).
|
||||
.PP
|
||||
@ -344,7 +344,7 @@ transactions/postings are shown.
|
||||
.PP
|
||||
\f[C]R\f[] toggles real mode, in which virtual postings are ignored.
|
||||
.PP
|
||||
\f[C]E\f[] toggles nonzero mode, in which only transactions posting a
|
||||
\f[C]Z\f[] toggles nonzero mode, in which only transactions posting a
|
||||
nonzero change are shown (hledger\-ui shows zero items by default,
|
||||
unlike command\-line hledger).
|
||||
.PP
|
||||
|
||||
@ -225,7 +225,7 @@ uncleared transactions/postings are shown.
|
||||
|
||||
`R' toggles real mode, in which virtual postings are ignored.
|
||||
|
||||
`E' toggles nonzero mode, in which only accounts with nonzero
|
||||
`Z' toggles nonzero mode, in which only accounts with nonzero
|
||||
balances are shown (hledger-ui shows zero items by default, unlike
|
||||
command-line hledger).
|
||||
|
||||
@ -278,7 +278,7 @@ uncleared transactions/postings are shown.
|
||||
|
||||
`R' toggles real mode, in which virtual postings are ignored.
|
||||
|
||||
`E' toggles nonzero mode, in which only transactions posting a
|
||||
`Z' toggles nonzero mode, in which only transactions posting a
|
||||
nonzero change are shown (hledger-ui shows zero items by default, unlike
|
||||
command-line hledger).
|
||||
|
||||
|
||||
@ -130,7 +130,7 @@ transactions/postings are shown.
|
||||
|
||||
`R` toggles real mode, in which [virtual postings](/journal.html#virtual-postings) are ignored.
|
||||
|
||||
`E` toggles nonzero mode, in which only accounts with nonzero balances
|
||||
`Z` toggles nonzero mode, in which only accounts with nonzero balances
|
||||
are shown (hledger-ui shows zero items by default, unlike command-line
|
||||
hledger).
|
||||
|
||||
@ -179,7 +179,7 @@ transactions/postings are shown.
|
||||
|
||||
`R` toggles real mode, in which [virtual postings](/journal.html#virtual-postings) are ignored.
|
||||
|
||||
`E` toggles nonzero mode, in which only transactions posting a nonzero
|
||||
`Z` toggles nonzero mode, in which only transactions posting a nonzero
|
||||
change are shown (hledger-ui shows zero items by default,
|
||||
unlike command-line hledger).
|
||||
|
||||
|
||||
@ -196,7 +196,7 @@ SCREENS
|
||||
|
||||
R toggles real mode, in which virtual postings are ignored.
|
||||
|
||||
E toggles nonzero mode, in which only accounts with nonzero balances
|
||||
Z toggles nonzero mode, in which only accounts with nonzero balances
|
||||
are shown (hledger-ui shows zero items by default, unlike command-line
|
||||
hledger).
|
||||
|
||||
@ -241,7 +241,7 @@ SCREENS
|
||||
|
||||
R toggles real mode, in which virtual postings are ignored.
|
||||
|
||||
E toggles nonzero mode, in which only transactions posting a nonzero
|
||||
Z toggles nonzero mode, in which only transactions posting a nonzero
|
||||
change are shown (hledger-ui shows zero items by default, unlike com-
|
||||
mand-line hledger).
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user