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 '_') [] -> continue $ regenerateScreens j d $ decDepth ui | ||||||
|         EvKey (KChar c)   [] | c `elem` ['+','='] -> continue $ regenerateScreens j d $ incDepth ui |         EvKey (KChar c)   [] | c `elem` ['+','='] -> continue $ regenerateScreens j d $ incDepth ui | ||||||
|         EvKey (KChar 'F') [] -> continue $ regenerateScreens j d $ toggleFlat 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 'C') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleCleared ui) | ||||||
|         EvKey (KChar 'U') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleUncleared ui) |         EvKey (KChar 'U') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleUncleared ui) | ||||||
|         EvKey (KChar 'R') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleReal 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 '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 '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 '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 'C') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleCleared ui) | ||||||
|         EvKey (KChar 'U') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleUncleared ui) |         EvKey (KChar 'U') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleUncleared ui) | ||||||
|         EvKey (KChar 'R') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleReal ui) |         EvKey (KChar 'R') [] -> scrollTop >> (continue $ regenerateScreens j d $ toggleReal ui) | ||||||
|  | |||||||
| @ -48,12 +48,12 @@ helpDialog = | |||||||
|            vBox [ |            vBox [ | ||||||
|              str "FILTERING" |              str "FILTERING" | ||||||
|             ,renderKey ("/", "set a filter query") |             ,renderKey ("/", "set a filter query") | ||||||
|             ,renderKey ("DEL/BS", "remove filters") |  | ||||||
|             ,renderKey ("C", "toggle cleared filter") |             ,renderKey ("C", "toggle cleared filter") | ||||||
|             ,renderKey ("U", "toggle uncleared filter") |             ,renderKey ("U", "toggle uncleared filter") | ||||||
|             ,renderKey ("R", "toggle real filter") |             ,renderKey ("R", "toggle real filter") | ||||||
|             ,renderKey ("E", "toggle nonzero filter") |             ,renderKey ("Z", "toggle nonzero filter") | ||||||
|             ,renderKey ("F", "toggle flat/exclusive mode") |             ,renderKey ("F", "toggle flat/exclusive mode") | ||||||
|  |             ,renderKey ("DEL/BS", "remove filters") | ||||||
|             ,str "accounts screen:" |             ,str "accounts screen:" | ||||||
|             ,renderKey ("-+0123456789", "set depth limit") |             ,renderKey ("-+0123456789", "set depth limit") | ||||||
|             ] |             ] | ||||||
|  | |||||||
| @ -282,7 +282,7 @@ transactions/postings are shown. | |||||||
| .PP | .PP | ||||||
| \f[C]R\f[] toggles real mode, in which virtual postings are ignored. | \f[C]R\f[] toggles real mode, in which virtual postings are ignored. | ||||||
| .PP | .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 | balances are shown (hledger\-ui shows zero items by default, unlike | ||||||
| command\-line hledger). | command\-line hledger). | ||||||
| .PP | .PP | ||||||
| @ -344,7 +344,7 @@ transactions/postings are shown. | |||||||
| .PP | .PP | ||||||
| \f[C]R\f[] toggles real mode, in which virtual postings are ignored. | \f[C]R\f[] toggles real mode, in which virtual postings are ignored. | ||||||
| .PP | .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, | nonzero change are shown (hledger\-ui shows zero items by default, | ||||||
| unlike command\-line hledger). | unlike command\-line hledger). | ||||||
| .PP | .PP | ||||||
|  | |||||||
| @ -225,7 +225,7 @@ uncleared transactions/postings are shown. | |||||||
| 
 | 
 | ||||||
|    `R' toggles real mode, in which virtual postings are ignored. |    `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 | balances are shown (hledger-ui shows zero items by default, unlike | ||||||
| command-line hledger). | command-line hledger). | ||||||
| 
 | 
 | ||||||
| @ -278,7 +278,7 @@ uncleared transactions/postings are shown. | |||||||
| 
 | 
 | ||||||
|    `R' toggles real mode, in which virtual postings are ignored. |    `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 | nonzero change are shown (hledger-ui shows zero items by default, unlike | ||||||
| command-line hledger). | 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. | `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 | are shown (hledger-ui shows zero items by default, unlike command-line | ||||||
| hledger). | hledger). | ||||||
| 
 | 
 | ||||||
| @ -179,7 +179,7 @@ transactions/postings are shown. | |||||||
| 
 | 
 | ||||||
| `R` toggles real mode, in which [virtual postings](/journal.html#virtual-postings) are ignored. | `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, | change are shown (hledger-ui shows zero items by default, | ||||||
| unlike command-line hledger). | unlike command-line hledger). | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -196,7 +196,7 @@ SCREENS | |||||||
| 
 | 
 | ||||||
|        R toggles real mode, in which virtual postings are ignored. |        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 |        are shown (hledger-ui shows zero items by default, unlike  command-line | ||||||
|        hledger). |        hledger). | ||||||
| 
 | 
 | ||||||
| @ -241,7 +241,7 @@ SCREENS | |||||||
| 
 | 
 | ||||||
|        R toggles real mode, in which virtual postings are ignored. |        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- |        change  are  shown (hledger-ui shows zero items by default, unlike com- | ||||||
|        mand-line hledger). |        mand-line hledger). | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user