packages feed

hledger-ui 1.18.1 → 1.19

raw patch · 14 files changed

+461/−415 lines, 14 filesdep ~ansi-terminaldep ~hledgerdep ~hledger-lib

Dependency ranges changed: ansi-terminal, hledger, hledger-lib, megaparsec, vty

Files

CHANGES.md view
@@ -1,6 +1,34 @@ User-visible changes in hledger-ui. See also the hledger changelog. +# 1.19 2020-09-01++- The --color/--colour=WHEN command line option, support for the+  NO_COLOR environment variable, and smarter autodetection of colour+  terminals have been added (#1296)++- -t and -l command line flags have been added as short forms of+  --tree and --flat (#1286)++- Flat (AKA list) mode is now the default++- t now toggles tree mode, while T sets the "today" period (#1286)++- register: multicommodity amounts containing more than two+  commodities are now elided++- register: a transaction dated outside the report period now is not+  shown even if it has postings dated inside the report period.++- ESC now restores exactly the app's state at startup, which includes+  clearing any report period limit (#1286)++- DEL/BS no longer changes the tree/list mode++- q now exits help before exiting the app (#1286)++- The help dialog's layout is improved+ # 1.18.1 2020-06-21  - Fix regression in 'F' (#1255) (Dmitry Astapov)
Hledger/UI/AccountsScreen.hs view
@@ -90,25 +90,18 @@         excludeforecastq Nothing  =  -- not:date:tomorrow- not:tag:generated-transaction           And [              Not (Date $ DateSpan (Just $ addDays 1 d) Nothing)-            ,Not (Tag "generated-transaction" Nothing)+            ,Not generatedTransactionTag           ]      -- run the report-    (items,_total) = report ropts' q j-      where-                 -- XXX in historical mode, --forecast throws off the starting balances-        report | balancetype_ ropts == HistoricalBalance = balanceReportFromMultiBalanceReport-               | otherwise                               = balanceReport-                    -- still using the old balanceReport for change reports as it-                    -- does not include every account from before the report period-+    (items,_total) = balanceReport ropts' q j      -- pre-render the list items     displayitem (fullacct, shortacct, indent, bal) =       AccountsScreenItem{asItemIndentLevel        = indent                         ,asItemAccountName        = fullacct                         ,asItemDisplayAccountName = replaceHiddenAccountsNameWith "All" $ if tree_ ropts' then shortacct else fullacct-                        ,asItemRenderedAmounts    = map showAmountWithoutPrice amts -- like showMixedAmountOneLineWithoutPrice+                        ,asItemRenderedAmounts    = map (showAmountWithoutPrice False) amts                         }       where         Mixed amts = normaliseMixedAmountSquashPricesForDisplay $ stripPrices bal@@ -123,7 +116,7 @@                         }  -asInit _ _ _ = error "init function called with wrong screen type, should not happen"+asInit _ _ _ = error "init function called with wrong screen type, should not happen"  -- PARTIAL:  asDraw :: UIState -> [Widget Name] asDraw UIState{aopts=_uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}}@@ -215,8 +208,10 @@             quickhelp = borderKeysStr' [                ("?", str "help") --              ,("RIGHT", str "register")+              ,("t", renderToggle (tree_ ropts) "list" "tree")+              -- ,("t", str "tree")+              -- ,("l", str "list")               ,("-+", str "depth")-              ,("T", renderToggle (tree_ ropts) "flat" "tree")               ,("H", renderToggle (not ishistorical) "end-bals" "changes")               ,("F", renderToggle1 (isJust $ forecast_ ropts) "forecast")               --,("/", "filter")@@ -227,7 +222,7 @@               ,("q", str "quit")               ] -asDraw _ = error "draw function called with wrong screen type, should not happen"+asDraw _ = error "draw function called with wrong screen type, should not happen"  -- PARTIAL:  asDrawItem :: (Int,Int) -> Bool -> AccountsScreenItem -> Widget Name asDrawItem (acctwidth, balwidth) selected AccountsScreenItem{..} =@@ -291,7 +286,7 @@      Help ->       case ev of-        VtyEvent (EvKey (KChar 'q') []) -> halt ui+        -- VtyEvent (EvKey (KChar 'q') []) -> halt ui         VtyEvent (EvKey (KChar 'l') [MCtrl]) -> redraw ui         VtyEvent (EvKey (KChar 'z') [MCtrl]) -> suspend ui         _                    -> helpHandle ui ev@@ -329,11 +324,11 @@         VtyEvent (EvKey (KChar '-') []) -> continue $ regenerateScreens j d $ decDepth ui         VtyEvent (EvKey (KChar '_') []) -> continue $ regenerateScreens j d $ decDepth ui         VtyEvent (EvKey (KChar c)   []) | c `elem` ['+','='] -> continue $ regenerateScreens j d $ incDepth ui-        VtyEvent (EvKey (KChar 't') [])    -> continue $ regenerateScreens j d $ setReportPeriod (DayPeriod d) ui+        VtyEvent (EvKey (KChar 'T') []) -> continue $ regenerateScreens j d $ setReportPeriod (DayPeriod d) ui          -- display mode/query toggles         VtyEvent (EvKey (KChar 'H') []) -> asCenterAndContinue $ regenerateScreens j d $ toggleHistorical ui-        VtyEvent (EvKey (KChar 'T') []) -> asCenterAndContinue $ regenerateScreens j d $ toggleTree ui+        VtyEvent (EvKey (KChar 't') []) -> asCenterAndContinue $ regenerateScreens j d $ toggleTree ui         VtyEvent (EvKey (KChar 'Z') []) -> asCenterAndContinue $ regenerateScreens j d $ toggleEmpty ui         VtyEvent (EvKey (KChar 'R') []) -> asCenterAndContinue $ regenerateScreens j d $ toggleReal ui         VtyEvent (EvKey (KChar 'U') []) -> asCenterAndContinue $ regenerateScreens j d $ toggleUnmarked ui@@ -398,7 +393,7 @@   where     journalspan = journalDateSpan False j -asHandle _ _ = error "event handler called with wrong screen type, should not happen"+asHandle _ _ = error "event handler called with wrong screen type, should not happen"  -- PARTIAL:  asSetSelectedAccount a s@AccountsScreen{} = s & asSelectedAccount .~ a asSetSelectedAccount _ s = s
Hledger/UI/ErrorScreen.hs view
@@ -41,7 +41,7 @@  esInit :: Day -> Bool -> UIState -> UIState esInit _ _ ui@UIState{aScreen=ErrorScreen{}} = ui-esInit _ _ _ = error "init function called with wrong screen type, should not happen"+esInit _ _ _ = error "init function called with wrong screen type, should not happen"  -- PARTIAL:  esDraw :: UIState -> [Widget Name] esDraw UIState{aopts=UIOpts{cliopts_=copts@CliOpts{}}@@ -72,7 +72,7 @@               ,("q", "quit")               ] -esDraw _ = error "draw function called with wrong screen type, should not happen"+esDraw _ = error "draw function called with wrong screen type, should not happen"  -- PARTIAL:  esHandle :: UIState -> BrickEvent Name AppEvent -> EventM Name (Next UIState) esHandle ui@UIState{aScreen=ErrorScreen{..}@@ -111,7 +111,7 @@         VtyEvent (EvKey (KChar 'z') [MCtrl]) -> suspend ui         _ -> continue ui -esHandle _ _ = error "event handler called with wrong screen type, should not happen"+esHandle _ _ = error "event handler called with wrong screen type, should not happen"  -- PARTIAL:  -- | Parse the file name, line and column number from a hledger parse error message, if possible. -- Temporary, we should keep the original parse error location. XXX
Hledger/UI/Main.hs view
@@ -16,9 +16,6 @@ import Control.Concurrent.Async import Control.Monad -- import Control.Monad.IO.Class (liftIO)-#if !MIN_VERSION_vty(5,15,0)-import Data.Default (def)-#endif -- import Data.Monoid              -- import Data.List import Data.List.Extra (nubSort)@@ -33,11 +30,7 @@ import System.FSNotify import Brick -#if MIN_VERSION_brick(0,16,0) import qualified Brick.BChan as BC-#else-import Control.Concurrent.Chan (newChan, writeChan)-#endif  import Hledger import Hledger.Cli hiding (progname,prognameandversion)@@ -50,13 +43,11 @@  ---------------------------------------------------------------------- -#if MIN_VERSION_brick(0,16,0) newChan :: IO (BC.BChan a) newChan = BC.newBChan 10  writeChan :: BC.BChan a -> a -> IO () writeChan = BC.writeBChan-#endif   main :: IO ()@@ -92,7 +83,7 @@          reportopts_= ropts{             -- incorporate any depth: query args into depth_,             -- any date: query args into period_-            depth_ =depthfromoptsandargs,+            depth_ =queryDepth q,             period_=periodfromoptsandargs,             query_ =unwords -- as in ReportOptions, with same limitations                     $ collectopts filteredQueryArg (rawopts_ copts),@@ -107,9 +98,8 @@       }       where         q = queryFromOpts d ropts-        depthfromoptsandargs = case queryDepth q of 99999 -> Nothing-                                                    d     -> Just d-        datespanfromargs = queryDateSpan (date2_ ropts) $ fst $ parseQuery d (T.pack $ query_ ropts)+        datespanfromargs = queryDateSpan (date2_ ropts) $ fst $+                           either error' id $ parseQuery d (T.pack $ query_ ropts)  -- PARTIAL:         periodfromoptsandargs =           dateSpanAsPeriod $ spansIntersect [periodAsDateSpan $ period_ ropts, datespanfromargs]         filteredQueryArg = \case@@ -130,15 +120,18 @@       -- to that as usual.       Just apat -> (rsSetAccount acct False registerScreen, [ascr'])         where-          acct = headDef-                 (error' $ "--register "++apat++" did not match any account")-                 $ filter (regexMatches apat . T.unpack) $ journalAccountNames j+          acct = headDef (error' $ "--register "++apat++" did not match any account")  -- PARTIAL:+                 . filterAccts $ journalAccountNames j+          filterAccts = case toRegexCI apat of+              Right re -> filter (regexMatch re . T.unpack)+              Left  _  -> const []           -- Initialising the accounts screen is awkward, requiring           -- another temporary UIState value..           ascr' = aScreen $                   asInit d True                     UIState{-                      aopts=uopts'+                     astartupopts=uopts'+                    ,aopts=uopts'                     ,ajournal=j                     ,aScreen=asSetSelectedAccount acct accountsScreen                     ,aPrevScreens=[]@@ -149,7 +142,8 @@       (sInit scr) d True $         (if change_ uopts' then toggleHistorical else id) -- XXX           UIState{-            aopts=uopts'+           astartupopts=uopts'+          ,aopts=uopts'           ,ajournal=j           ,aScreen=scr           ,aPrevScreens=prevscrs@@ -232,11 +226,7 @@             )          -- and start the app. Must be inside the withManager block-#if MIN_VERSION_vty(5,15,0)         let mkvty = mkVty mempty-#else-        let mkvty = mkVty def-#endif #if MIN_VERSION_brick(0,47,0)         vty0 <- mkvty         void $ customMain vty0 mkvty (Just eventChan) brickapp ui
Hledger/UI/RegisterScreen.hs view
@@ -76,7 +76,7 @@         excludeforecastq Nothing  =  -- not:date:tomorrow- not:tag:generated-transaction           And [              Not (Date $ DateSpan (Just $ addDays 1 d) Nothing)-            ,Not (Tag "generated-transaction" Nothing)+            ,Not generatedTransactionTag           ]      (_label,items) = accountTransactionsReport ropts' j q thisacctq@@ -95,8 +95,8 @@                                                      [s] -> s                                                      ss  -> intercalate ", " ss                                                      -- _   -> "<split>"  -- should do this if accounts field width < 30-                            ,rsItemChangeAmount  = showMixedAmountOneLineWithoutPrice change-                            ,rsItemBalanceAmount = showMixedAmountOneLineWithoutPrice bal+                            ,rsItemChangeAmount  = showMixedAmountElided False change+                            ,rsItemBalanceAmount = showMixedAmountElided False bal                             ,rsItemTransaction   = t                             }     -- blank items are added to allow more control of scroll position; we won't allow movement over these@@ -135,7 +135,7 @@                 ts = map rsItemTransaction displayitems         endidx = length displayitems - 1 -rsInit _ _ _ = error "init function called with wrong screen type, should not happen"+rsInit _ _ _ = error "init function called with wrong screen type, should not happen"  -- PARTIAL:  rsDraw :: UIState -> [Widget Name] rsDraw UIState{aopts=_uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}}@@ -235,7 +235,12 @@                ("?", str "help")               ,("LEFT", str "back") --              ,("RIGHT", str "transaction")-              ,("T", renderToggle (tree_ ropts) "flat(-subs)" "tree(+subs)") -- rsForceInclusive may override, but use tree_ to ensure a visible toggle effect++              -- tree/list mode - rsForceInclusive may override, but use tree_ to ensure a visible toggle effect+              ,("t", renderToggle (tree_ ropts) "list(-subs)" "tree(+subs)")+              -- ,("t", str "tree(+subs)")+              -- ,("l", str "list(-subs)")+               ,("H", renderToggle (not ishistorical) "historical" "period")               ,("F", renderToggle1 (isJust $ forecast_ ropts) "forecast") --               ,("a", "add")@@ -243,7 +248,7 @@ --               ,("q", "quit")               ] -rsDraw _ = error "draw function called with wrong screen type, should not happen"+rsDraw _ = error "draw function called with wrong screen type, should not happen"  -- PARTIAL:  rsDrawItem :: (Int,Int,Int,Int,Int) -> Bool -> RegisterScreenItem -> Widget Name rsDrawItem (datewidth,descwidth,acctswidth,changewidth,balwidth) selected RegisterScreenItem{..} =@@ -297,7 +302,7 @@      Help ->       case ev of-        VtyEvent (EvKey (KChar 'q') []) -> halt ui+        -- VtyEvent (EvKey (KChar 'q') []) -> halt ui         VtyEvent (EvKey (KChar 'l') [MCtrl]) -> redraw ui         VtyEvent (EvKey (KChar 'z') [MCtrl]) -> suspend ui         _                    -> helpHandle ui ev@@ -316,7 +321,7 @@         VtyEvent (EvKey (KChar 'I') []) -> continue $ uiCheckBalanceAssertions d (toggleIgnoreBalanceAssertions ui)         VtyEvent (EvKey (KChar 'a') []) -> suspendAndResume $ clearScreen >> setCursorPosition 0 0 >> add copts j >> uiReloadJournalIfChanged copts d j ui         VtyEvent (EvKey (KChar 'A') []) -> suspendAndResume $ void (runIadd (journalFilePath j)) >> uiReloadJournalIfChanged copts d j ui-        VtyEvent (EvKey (KChar 't') [])    -> continue $ regenerateScreens j d $ setReportPeriod (DayPeriod d) ui+        VtyEvent (EvKey (KChar 'T') []) -> continue $ regenerateScreens j d $ setReportPeriod (DayPeriod d) ui         VtyEvent (EvKey (KChar 'E') []) -> suspendAndResume $ void (runEditor pos f) >> uiReloadJournalIfChanged copts d j ui           where             (pos,f) = case listSelectedElement rsList of@@ -330,7 +335,7 @@         VtyEvent (EvKey (KChar 'B') []) -> rsCenterAndContinue $ regenerateScreens j d $ toggleCost ui         VtyEvent (EvKey (KChar 'V') []) -> rsCenterAndContinue $ regenerateScreens j d $ toggleValue ui         VtyEvent (EvKey (KChar 'H') []) -> rsCenterAndContinue $ regenerateScreens j d $ toggleHistorical ui-        VtyEvent (EvKey (KChar 'T') []) -> rsCenterAndContinue $ regenerateScreens j d $ toggleTree ui+        VtyEvent (EvKey (KChar 't') []) -> rsCenterAndContinue $ regenerateScreens j d $ toggleTree ui         VtyEvent (EvKey (KChar 'Z') []) -> rsCenterAndContinue $ regenerateScreens j d $ toggleEmpty ui         VtyEvent (EvKey (KChar 'R') []) -> rsCenterAndContinue $ regenerateScreens j d $ toggleReal ui         VtyEvent (EvKey (KChar 'U') []) -> rsCenterAndContinue $ regenerateScreens j d $ toggleUnmarked ui@@ -355,7 +360,7 @@               let                 ts = map rsItemTransaction $ V.toList $ nonblanks                 numberedts = zip [1..] ts-                i = fromIntegral $ maybe 0 (+1) $ elemIndex t ts -- XXX+                i = maybe 0 (toInteger . (+1)) $ elemIndex t ts -- XXX               in                 continue $ screenEnter d transactionScreen{tsTransaction=(i,t)                                                           ,tsTransactions=numberedts@@ -391,7 +396,7 @@         MouseDown _ _ _ _ -> continue ui         MouseUp _ _ _     -> continue ui -rsHandle _ _ = error "event handler called with wrong screen type, should not happen"+rsHandle _ _ = error "event handler called with wrong screen type, should not happen"  -- PARTIAL:  isBlankElement mel = ((rsItemDate . snd) <$> mel) == Just "" 
Hledger/UI/TransactionScreen.hs view
@@ -55,7 +55,7 @@   --       (acommodity$head$amounts$pamount$head$tpostings$snd$tsTransaction)   --      `seq`   ui-tsInit _ _ _ = error "init function called with wrong screen type, should not happen"+tsInit _ _ _ = error "init function called with wrong screen type, should not happen"  -- PARTIAL:  tsDraw :: UIState -> [Widget Name] tsDraw UIState{aopts=UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}}@@ -76,10 +76,10 @@         prices = journalPriceOracle (infer_value_ ropts) j         styles = journalCommodityStyles j         periodlast =-          fromMaybe (error' "TransactionScreen: expected a non-empty journal") $ -- XXX shouldn't happen+          fromMaybe (error' "TransactionScreen: expected a non-empty journal") $  -- PARTIAL: shouldn't happen           reportPeriodOrJournalLastDay ropts j         mreportlast = reportPeriodLastDay ropts-        today = fromMaybe (error' "TransactionScreen: could not pick a valuation date, ReportOpts today_ is unset") $ today_ ropts+        today = fromMaybe (error' "TransactionScreen: could not pick a valuation date, ReportOpts today_ is unset") $ today_ ropts  -- PARTIAL:         multiperiod = interval_ ropts /= NoInterval        render $ defaultLayout toplabel bottomlabel $ str $@@ -126,7 +126,7 @@               ,("q", "quit")               ] -tsDraw _ = error "draw function called with wrong screen type, should not happen"+tsDraw _ = error "draw function called with wrong screen type, should not happen"  -- PARTIAL:  tsHandle :: UIState -> BrickEvent Name AppEvent -> EventM Name (Next UIState) tsHandle ui@UIState{aScreen=s@TransactionScreen{tsTransaction=(i,t)@@ -141,7 +141,7 @@   case mode of     Help ->       case ev of-        VtyEvent (EvKey (KChar 'q') []) -> halt ui+        -- VtyEvent (EvKey (KChar 'q') []) -> halt ui         VtyEvent (EvKey (KChar 'l') [MCtrl]) -> redraw ui         VtyEvent (EvKey (KChar 'z') [MCtrl]) -> suspend ui         _                    -> helpHandle ui ev@@ -204,7 +204,7 @@         VtyEvent (EvKey (KChar 'z') [MCtrl]) -> suspend ui         _ -> continue ui -tsHandle _ _ = error "event handler called with wrong screen type, should not happen"+tsHandle _ _ = error "event handler called with wrong screen type, should not happen"  -- PARTIAL:  -- Got to redo the register screen's transactions report, to get the latest transactions list for this screen. -- XXX Duplicates rsInit. Why do we have to do this as well as regenerateScreens ?
Hledger/UI/UIOptions.hs view
@@ -1,5 +1,4 @@ {-# LANGUAGE CPP #-}-{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE LambdaCase #-} {-| @@ -35,13 +34,12 @@   --   "show balance change accumulated across periods (in multicolumn reports)"   -- ,flagNone ["historical","H"] (setboolopt "historical")   --   "show historical ending balance in each period (includes postings before report start date)\n "-  ,flagNone ["flat","F"] (setboolopt "flat") "show accounts as a list (default)"-  ,flagNone ["tree","T"] (setboolopt "tree") "show accounts as a tree"+  ]+  ++ flattreeflags False --  ,flagNone ["present"] (setboolopt "present") "exclude transactions dated later than today (default)"   -- ,flagReq ["drop"] (\s opts -> Right $ setopt "drop" s opts) "N" "with --flat, omit this many leading account name components"   -- ,flagReq  ["format"] (\s opts -> Right $ setopt "format" s opts) "FORMATSTR" "use this custom line format"   -- ,flagNone ["no-elide"] (setboolopt "no-elide") "don't compress empty parent accounts on one line"- ]  --uimode :: Mode RawOpts uimode =  (mode "hledger-ui" (setopt "command" "ui" def)
Hledger/UI/UIState.hs view
@@ -1,15 +1,12 @@-{-# LANGUAGE CPP #-} {- | UIState operations. -} +{-# LANGUAGE NamedFieldPuns    #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards   #-}  module Hledger.UI.UIState where -#if !MIN_VERSION_brick(0,19,0)-import Brick-#endif import Brick.Widgets.Edit import Data.List import Data.Text.Zipper (gotoEOL)@@ -49,14 +46,14 @@     _ -> map showstatus $ sort ss   where     numstatuses = length [minBound..maxBound::Status]-    style = maybeintopt "status-toggles" $ rawopts_ copts+    style = maybeposintopt "status-toggles" $ rawopts_ copts     showstatus Cleared  = "cleared"     showstatus Pending  = "pending"     showstatus Unmarked = "unmarked"  reportOptsToggleStatusSomehow :: Status -> CliOpts -> ReportOpts -> ReportOpts reportOptsToggleStatusSomehow s copts ropts =-  case maybeintopt "status-toggles" $ rawopts_ copts of+  case maybeposintopt "status-toggles" $ rawopts_ copts of      Just 2 -> reportOptsToggleStatus2 s ropts      Just 3 -> reportOptsToggleStatus3 s ropts --     Just 4 -> reportOptsToggleStatus4 s ropts@@ -135,6 +132,16 @@ valuationToggleValue (Just (AtDefault _)) = Nothing valuationToggleValue _                    = Just $ AtDefault Nothing +-- | Set hierarchic account tree mode.+setTree :: UIState -> UIState+setTree ui@UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}}} =+  ui{aopts=uopts{cliopts_=copts{reportopts_=ropts{accountlistmode_=ALTree}}}}++-- | Set flat account list mode.+setList :: UIState -> UIState+setList ui@UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}}} =+  ui{aopts=uopts{cliopts_=copts{reportopts_=ropts{accountlistmode_=ALFlat}}}}+ -- | Toggle between flat and tree mode. If current mode is unspecified/default, assume it's flat. toggleTree :: UIState -> UIState toggleTree ui@UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}}} =@@ -225,23 +232,31 @@ setReportPeriod p ui@UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}}} =   ui{aopts=uopts{cliopts_=copts{reportopts_=ropts{period_=p}}}} +-- | Clear any report period limits.+resetReportPeriod :: UIState -> UIState+resetReportPeriod = setReportPeriod PeriodAll+ -- | Apply a new filter query. setFilter :: String -> UIState -> UIState setFilter s ui@UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}}} =   ui{aopts=uopts{cliopts_=copts{reportopts_=ropts{query_=s}}}} --- | Clear all filters/flags.+-- | Reset some filters & toggles. resetFilter :: UIState -> UIState resetFilter ui@UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}}} =   ui{aopts=uopts{cliopts_=copts{reportopts_=ropts{-     accountlistmode_=ALFlat-    ,empty_=True+     empty_=True     ,statuses_=[]     ,real_=False     ,query_=""     --,period_=PeriodAll     }}}} +-- | Reset all options state to exactly what it was at startup+-- (preserving any command-line options/arguments).+resetOpts :: UIState -> UIState+resetOpts ui@UIState{astartupopts} = ui{aopts=astartupopts}+ resetDepth :: UIState -> UIState resetDepth ui@UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}}} =   ui{aopts=uopts{cliopts_=copts{reportopts_=ropts{depth_=Nothing}}}}@@ -289,11 +304,7 @@ showMinibuffer :: UIState -> UIState showMinibuffer ui = setMode (Minibuffer e) ui   where-#if MIN_VERSION_brick(0,19,0)     e = applyEdit gotoEOL $ editor MinibufferEditor (Just 1) oldq-#else-    e = applyEdit gotoEOL $ editor MinibufferEditor (str . unlines) (Just 1) oldq-#endif     oldq = query_ $ reportopts_ $ cliopts_ $ aopts ui  -- | Close the minibuffer, discarding any edit in progress.@@ -330,7 +341,9 @@  resetScreens :: Day -> UIState -> UIState resetScreens d ui@UIState{aScreen=s,aPrevScreens=ss} =-  (sInit topscreen) d True $ resetDepth $ resetFilter $ closeMinibuffer ui{aScreen=topscreen, aPrevScreens=[]}+  (sInit topscreen) d True $+  resetOpts $+  closeMinibuffer ui{aScreen=topscreen, aPrevScreens=[]}   where     topscreen = case ss of _:_ -> last ss                            []  -> s
Hledger/UI/UITypes.hs view
@@ -54,7 +54,8 @@ -- The app can be in one of several modes: normal screen operation, -- showing a help dialog, entering data in the minibuffer etc. data UIState = UIState {-   aopts        :: UIOpts    -- ^ the command-line options and query arguments currently in effect+   astartupopts :: UIOpts    -- ^ the command-line options and query arguments specified at startup+  ,aopts        :: UIOpts    -- ^ the command-line options and query arguments currently in effect   ,ajournal     :: Journal   -- ^ the journal being viewed   ,aPrevScreens :: [Screen]  -- ^ previously visited screens, most recent first   ,aScreen      :: Screen    -- ^ the currently active screen
Hledger/UI/UIUtils.hs view
@@ -90,55 +90,54 @@     c <- getContext     render $       withDefAttr "help" $-      renderDialog (dialog (Just "Help (?/LEFT/ESC to close)") Nothing (c^.availWidthL)) $ -- (Just (0,[("ok",())]))-      padTop (Pad 1) $ padLeft (Pad 1) $ padRight (Pad 1) $+      renderDialog (dialog (Just "Help (LEFT/ESC/?/q to close help)") Nothing (c^.availWidthL)) $ -- (Just (0,[("ok",())]))+      padTop (Pad 0) $ padLeft (Pad 1) $ padRight (Pad 1) $         vBox [            hBox [               padRight (Pad 1) $                 vBox [                    withAttr ("help" <> "heading") $ str "Navigation"-                  ,renderKey ("UP/DOWN/PUP/PDN/HOME/END/emacs/vi keys", "")-                  ,str "      move selection"-                  ,renderKey ("RIGHT", "show account txns, txn detail")-                  ,renderKey ("LEFT ", "go back")-                  ,renderKey ("ESC  ", "cancel or reset")-                  ,str " "-                  ,withAttr ("help" <> "heading") $ str "Report period"-                  ,renderKey ("S-DOWN /S-UP  ", "shrink/grow period")-                  ,renderKey ("S-RIGHT/S-LEFT", "next/previous period")-                  ,renderKey ("t             ", "set period to today")+                  ,renderKey ("UP/DOWN/PUP/PDN/HOME/END/k/j/C-p/C-n", "")+                  ,str "     move selection up/down"+                  ,renderKey ("RIGHT/l/C-f", "show txns, or txn detail")+                  ,renderKey ("LEFT/h/C-b ", "go back")+                  ,renderKey ("ESC ", "cancel, or reset app state")+                   ,str " "                   ,withAttr ("help" <> "heading") $ str "Accounts screen"-                  ,renderKey ("-+0123456789 ", "set depth limit")-                  ,renderKey ("T ", "toggle tree/flat mode")-                  ,renderKey ("H ", "historical end balance/period change")+                  ,renderKey ("1234567890-+ ", "set/adjust depth limit")+                  ,renderKey ("t ", "toggle accounts tree/list mode")+                  ,renderKey ("H ", "toggle historical balance/change")                   ,str " "                   ,withAttr ("help" <> "heading") $ str "Register screen"-                  ,renderKey ("T ", "toggle subaccount txns\n(and accounts screen tree/flat mode)")-                  ,renderKey ("H ", "show historical total/period total")+                  ,renderKey ("t ", "toggle subaccount txns\n(and accounts tree/list mode)")+                  ,renderKey ("H ", "toggle historical/period total")                   ,str " "+                  ,withAttr ("help" <> "heading") $ str "Help"+                  ,renderKey ("?    ", "toggle this help")+                  ,renderKey ("p/m/i", "while help is open:\nshow manual in pager/man/info")+                  ,str " "                 ]              ,padLeft (Pad 1) $ padRight (Pad 0) $                 vBox [                    withAttr ("help" <> "heading") $ str "Filtering"                   ,renderKey ("/   ", "set a filter query")-                  ,renderKey ("UPC ", "show unmarked/pending/cleared")                   ,renderKey ("F   ", "show future & periodic txns")                   ,renderKey ("R   ", "show real/all postings")                   ,renderKey ("Z   ", "show nonzero/all amounts")-                  ,renderKey ("DEL ", "remove filters")-                  ,str " "-                  ,withAttr ("help" <> "heading") $ str "Help"-                  ,renderKey ("?   ", "toggle this help")-                  ,renderKey ("p/m/i ", "(with this help open)\nshow manual in pager/man/info")+                  ,renderKey ("U/P/C ", "show unmarked/pending/cleared")+                  ,renderKey ("S-DOWN /S-UP  ", "shrink/grow period")+                  ,renderKey ("S-RIGHT/S-LEFT", "next/previous period")+                  ,renderKey ("T             ", "set period to today")+                  ,renderKey ("DEL ", "reset filters")                   ,str " "                   ,withAttr ("help" <> "heading") $ str "Other"                   ,renderKey ("a   ", "add transaction (hledger add)")                   ,renderKey ("A   ", "add transaction (hledger-iadd)")-                  ,renderKey ("B   ", "toggle normal/cost mode")+                  ,renderKey ("B   ", "show amounts/costs")                   ,renderKey ("E   ", "open editor")                   ,renderKey ("I   ", "toggle balance assertions")-                  ,renderKey ("V   ", "toggle normal/value mode")+                  ,renderKey ("V   ", "show amounts/market values")                   ,renderKey ("g   ", "reload data")                   ,renderKey ("C-l ", "redraw & recenter")                   ,renderKey ("C-z ", "suspend")@@ -168,24 +167,20 @@ helpHandle ui ev = do   pagerprog <- liftIO $ fromMaybe "less" <$> lookupEnv "PAGER"   case ev of-    VtyEvent e | e `elem` (moveLeftEvents ++ [EvKey KEsc [], EvKey (KChar '?') []]) -> continue $ setMode Normal ui+    VtyEvent e | e `elem` closeHelpEvents -> continue $ setMode Normal ui     VtyEvent (EvKey (KChar 'p') []) -> suspendAndResume $ runPagerForTopic pagerprog "hledger-ui" >> return ui'     VtyEvent (EvKey (KChar 'm') []) -> suspendAndResume $ runManForTopic             "hledger-ui" >> return ui'     VtyEvent (EvKey (KChar 'i') []) -> suspendAndResume $ runInfoForTopic            "hledger-ui" >> return ui'     _ -> continue ui   where     ui' = setMode Normal ui+    closeHelpEvents = moveLeftEvents ++ [EvKey KEsc [], EvKey (KChar '?') [], EvKey (KChar 'q') []]  -- | Draw the minibuffer. minibuffer :: Editor String Name -> Widget Name minibuffer ed =   forceAttr ("border" <> "minibuffer") $-  hBox $-#if MIN_VERSION_brick(0,19,0)-  [txt "filter: ", renderEditor (str . unlines) True ed]-#else-  [txt "filter: ", renderEditor True ed]-#endif+  hBox [txt "filter: ", renderEditor (str . unlines) True ed]  borderQueryStr :: String -> Widget Name borderQueryStr ""  = str ""
hledger-ui.1 view
@@ -1,5 +1,5 @@ -.TH "hledger-ui" "1" "June 2020" "hledger-ui 1.18.1" "hledger User Manuals"+.TH "hledger-ui" "1" "September 2020" "hledger-ui 1.18.99" "hledger User Manuals"   @@ -57,10 +57,10 @@ \f[B]\f[CB]--change\f[B]\f[R] show period balances (changes) at startup instead of historical balances .TP-\f[B]\f[CB]-F --flat\f[B]\f[R]-show accounts as a list (default)+\f[B]\f[CB]-l --flat\f[B]\f[R]+show accounts as a flat list (default) .TP-\f[B]\f[CB]-T --tree\f[B]\f[R]+\f[B]\f[CB]-t --tree\f[B]\f[R] show accounts as a tree .PP hledger input options:@@ -160,6 +160,15 @@ generate future transactions from periodic transaction rules, for the next 6 months or till report end date. In hledger-ui, also make ordinary future transactions visible.+.TP+\f[B]\f[CB]--color=WHEN (or --colour=WHEN)\f[B]\f[R]+Should color-supporting commands use ANSI color codes in text output.+\[aq]auto\[aq] (default): whenever stdout seems to be a color-supporting+terminal.+\[aq]always\[aq] or \[aq]yes\[aq]: always, useful eg when piping output+into \[aq]less -R\[aq].+\[aq]never\[aq] or \[aq]no\[aq]: never.+A NO_COLOR environment variable overrides this. .PP When a reporting option appears more than once in the command line, the last one takes precedence.@@ -177,133 +186,132 @@ \f[B]\f[CB]--debug[=N]\f[B]\f[R] show debug output (levels 1-9, default: 1) .PP-A \[at]FILE argument will be expanded to the contents of FILE, which+a \[at]file argument will be expanded to the contents of file, which should contain one command line option/argument per line.-(To prevent this, insert a \f[C]--\f[R] argument before.)-.SH KEYS+(to prevent this, insert a \f[C]--\f[R] argument before.)+.SH keys .PP \f[C]?\f[R] shows a help dialog listing all keys.-(Some of these also appear in the quick help at the bottom of each-screen.) Press \f[C]?\f[R] again (or \f[C]ESCAPE\f[R], or-\f[C]LEFT\f[R]) to close it.-The following keys work on most screens:+(some of these also appear in the quick help at the bottom of each+screen.) press \f[C]?\f[R] again (or \f[C]escape\f[R], or+\f[C]left\f[R], or \f[C]q\f[R]) to close it.+the following keys work on most screens: .PP-The cursor keys navigate: \f[C]right\f[R] (or \f[C]enter\f[R]) goes+the cursor keys navigate: \f[C]right\f[R] (or \f[C]enter\f[R]) goes deeper, \f[C]left\f[R] returns to the previous screen, \f[C]up\f[R]/\f[C]down\f[R]/\f[C]page up\f[R]/\f[C]page down\f[R]/\f[C]home\f[R]/\f[C]end\f[R] move up and down through lists.-Vi-style (\f[C]h\f[R]/\f[C]j\f[R]/\f[C]k\f[R]/\f[C]l\f[R]) and Emacs-style-(\f[C]CTRL-p\f[R]/\f[C]CTRL-n\f[R]/\f[C]CTRL-f\f[R]/\f[C]CTRL-b\f[R])-movement keys are also supported.+(\f[C]ctrl-p\f[R]/\f[C]ctrl-n\f[R]/\f[C]ctrl-f\f[R]/\f[C]ctrl-b\f[R])+movement keys are also supported (but not vi-style keys, since+hledger-1.19, sorry!). A tip: movement speed is limited by your keyboard repeat rate, to move faster you may want to adjust it.-(If you\[aq]re on a mac, the Karabiner app is one way to do that.)+(If you\[aq]re on a mac, the karabiner app is one way to do that.) .PP-With shift pressed, the cursor keys adjust the report period, limiting+with shift pressed, the cursor keys adjust the report period, limiting the transactions to be shown (by default, all are shown). \f[C]shift-down/up\f[R] steps downward and upward through these standard report period durations: year, quarter, month, week, day.-Then, \f[C]shift-left/right\f[R] moves to the previous/next period.-\f[C]t\f[R] sets the report period to today.-With the \f[C]--watch\f[R] option, when viewing a \[dq]current\[dq]+then, \f[C]shift-left/right\f[R] moves to the previous/next period.+\f[C]T\f[R] sets the report period to today.+with the \f[C]--watch\f[R] option, when viewing a \[dq]current\[dq] period (the current day, week, month, quarter, or year), the period will move automatically to track the current date.-To set a non-standard period, you can use \f[C]/\f[R] and a+to set a non-standard period, you can use \f[C]/\f[R] and a \f[C]date:\f[R] query. .PP \f[C]/\f[R] lets you set a general filter query limiting the data shown, using the same query terms as in hledger and hledger-web.-While editing the query, you can use CTRL-a/e/d/k, BS, cursor keys;-press \f[C]ENTER\f[R] to set it, or \f[C]ESCAPE\f[R]to cancel.-There are also keys for quickly adjusting some common filters like+while editing the query, you can use ctrl-a/e/d/k, bs, cursor keys;+press \f[C]enter\f[R] to set it, or \f[C]escape\f[R]to cancel.+there are also keys for quickly adjusting some common filters like account depth and transaction status (see below).-\f[C]BACKSPACE\f[R] or \f[C]DELETE\f[R] removes all filters, showing all+\f[C]backspace\f[R] or \f[C]delete\f[R] removes all filters, showing all transactions. .PP-As mentioned above, by default hledger-ui hides future transactions -+as mentioned above, by default hledger-ui hides future transactions - both ordinary transactions recorded in the journal, and periodic transactions generated by rule.-\f[C]F\f[R] toggles forecast mode, in which future/forecasted+\f[C]f\f[R] toggles forecast mode, in which future/forecasted transactions are shown.-(experimental)+\f[I](experimental)\f[R] .PP-\f[C]ESCAPE\f[R] removes all filters and jumps back to the top screen.-Or, it cancels a minibuffer edit or help dialog in progress.+\f[C]escape\f[R] resets the UI state and jumps back to the top screen,+restoring the app\[aq]s initial state at startup.+Or, it cancels minibuffer data entry or the help dialog. .PP-\f[C]CTRL-l\f[R] redraws the screen and centers the selection if+\f[C]ctrl-l\f[R] redraws the screen and centers the selection if possible (selections near the top won\[aq]t be centered, since we don\[aq]t scroll above the top). .PP \f[C]g\f[R] reloads from the data file(s) and updates the current screen and any previous screens.-(With large files, this could cause a noticeable pause.)+(with large files, this could cause a noticeable pause.) .PP-\f[C]I\f[R] toggles balance assertion checking.-Disabling balance assertions temporarily can be useful for+\f[C]i\f[R] toggles balance assertion checking.+disabling balance assertions temporarily can be useful for troubleshooting. .PP \f[C]a\f[R] runs command-line hledger\[aq]s add command, and reloads the updated file.-This allows some basic data entry.+this allows some basic data entry. .PP-\f[C]A\f[R] is like \f[C]a\f[R], but runs the hledger-iadd tool, which+\f[C]a\f[R] is like \f[C]a\f[R], but runs the hledger-iadd tool, which provides a terminal interface.-This key will be available if \f[C]hledger-iadd\f[R] is installed in-$PATH.+this key will be available if \f[C]hledger-iadd\f[R] is installed in+$path. .PP-\f[C]E\f[R] runs $HLEDGER_UI_EDITOR, or $EDITOR, or a default+\f[C]e\f[R] runs $hledger_ui_editor, or $editor, or a default (\f[C]emacsclient -a \[dq]\[dq] -nw\f[R]) on the journal file.-With some editors (emacs, vi), the cursor will be positioned at the+with some editors (emacs, vi), the cursor will be positioned at the current transaction when invoked from the register and transaction screens, and at the error location (if possible) when invoked from the error screen. .PP-\f[C]q\f[R] quits the application.-.PP-Experimental:-.PP-\f[C]B\f[R] toggles cost mode, showing amounts in their transaction-price\[aq]s commodity (like toggling the \f[C]-B/--cost\f[R] flag).+\f[C]b\f[R] toggles cost mode, showing amounts in their transaction+price\[aq]s commodity (like toggling the \f[C]-b/--cost\f[R] flag). .PP-\f[C]V\f[R] toggles value mode, showing amounts\[aq] current market+\f[C]v\f[R] toggles value mode, showing amounts\[aq] current market value in their default valuation commodity (like toggling the-\f[C]-V/--market\f[R] flag).-Note, \[dq]current market value\[dq] means the value on the report end+\f[C]-v/--market\f[R] flag).+note, \[dq]current market value\[dq] means the value on the report end date if specified, otherwise today.-To see the value on another date, you can temporarily set that as the+to see the value on another date, you can temporarily set that as the report end date.-Eg: to see a transaction as it was valued on july 30, go to the accounts+eg: to see a transaction as it was valued on july 30, go to the accounts or register screen, press \f[C]/\f[R], and add \f[C]date:-7/30\f[R] to the query. .PP-At most one of cost or value mode can be active at once.+at most one of cost or value mode can be active at once. .PP-There\[aq]s not yet any visual reminder when cost or value mode is-active; for now pressing \f[C]B\f[R] \f[C]B\f[R] \f[C]V\f[R] should+there\[aq]s not yet any visual reminder when cost or value mode is+active; for now pressing \f[C]b\f[R] \f[C]b\f[R] \f[C]v\f[R] should reliably reset to normal mode. .PP-With --watch active, if you save an edit to the journal file while+with --watch active, if you save an edit to the journal file while viewing the transaction screen in cost or value mode, the-\f[C]B\f[R]/\f[C]V\f[R] keys will stop working.-To work around, press g to force a manual reload, or exit the+\f[C]b\f[R]/\f[C]v\f[R] keys will stop working.+to work around, press g to force a manual reload, or exit the transaction screen. .PP-Additional screen-specific keys are described below.-.SH SCREENS-.SS Accounts screen+\f[C]q\f[R] quits the application. .PP-This is normally the first screen displayed.-It lists accounts and their balances, like hledger\[aq]s balance+additional screen-specific keys are described below.+.SH screens+.SS accounts screen+.PP+this is normally the first screen displayed.+it lists accounts and their balances, like hledger\[aq]s balance command.-By default, it shows all accounts and their latest ending balances+by default, it shows all accounts and their latest ending balances (including the balances of subaccounts). if you specify a query on the command line, it shows just the matched accounts and the balances from matched transactions. .PP-Account names are shown as a flat list by default.-Press \f[C]T\f[R] to toggle tree mode.-In flat mode, account balances are exclusive of subaccounts, except+Account names are shown as a flat list by default; press \f[C]t\f[R] to+toggle tree mode.+In list mode, account balances are exclusive of subaccounts, except where subaccounts are hidden by a depth limit (see below). In tree mode, all account balances are inclusive of subaccounts. .PP@@ -369,11 +377,11 @@ .PP Transactions affecting this account\[aq]s subaccounts will be included in the register if the accounts screen is in tree mode, or if it\[aq]s-in flat mode but this account has subaccounts which are not shown due to+in list mode but this account has subaccounts which are not shown due to a depth limit. In other words, the register always shows the transactions contributing to the balance shown on the accounts screen.-Tree mode/flat mode can be toggled with \f[C]T\f[R] here also.+Tree mode/list mode can be toggled with \f[C]t\f[R] here also. .PP \f[C]U\f[R] toggles filtering by unmarked status, showing or hiding unmarked transactions.
hledger-ui.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 75705f545e9d160a3a9b275ecd4b9c17835b8e2d103fdd12f6329f8158f80adc+-- hash: 9c9563df8beea6e2445dd5e1c364b74dda6a40513d9b5e368dbc2ec8df13c90f  name:           hledger-ui-version:        1.18.1+version:        1.19 synopsis:       Curses-style terminal interface for the hledger accounting system description:    A simple curses-style terminal user interface for the hledger accounting system.                 It can be a more convenient way to browse your accounts than the CLI.@@ -64,12 +64,13 @@   hs-source-dirs:       ./.   ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans-  cpp-options: -DVERSION="1.18.1"+  cpp-options: -DVERSION="1.19"   build-depends:-      ansi-terminal >=0.6.2.3+      ansi-terminal >=0.9     , async     , base >=4.9 && <4.15     , base-compat-batteries >=0.10.1 && <0.12+    , brick >=0.23     , cmdargs >=0.8     , containers     , data-default@@ -77,8 +78,8 @@     , extra >=1.6.3     , filepath     , fsnotify >=0.2.1.2 && <0.4-    , hledger >=1.18.1 && <1.19-    , hledger-lib >=1.18.1 && <1.19+    , hledger >=1.19 && <1.20+    , hledger-lib >=1.19 && <1.20     , megaparsec >=7.0.0 && <8.1     , microlens >=0.4     , microlens-platform >=0.2.3.1@@ -90,14 +91,13 @@     , text-zipper >=0.4     , time >=1.5     , transformers+    , unix     , vector+    , vty >=5.15   if os(windows)     buildable: False   else-    build-depends:-        brick >=0.23-      , unix-      , vty >=5.5+    buildable: True   if flag(threaded)     ghc-options: -threaded   default-language: Haskell2010
hledger-ui.info view
@@ -3,8 +3,8 @@  File: hledger-ui.info,  Node: Top,  Next: OPTIONS,  Up: (dir) -hledger-ui(1) hledger-ui 1.18.1-*******************************+hledger-ui(1) hledger-ui 1.18.99+********************************  hledger-ui - terminal interface for the hledger accounting tool @@ -36,14 +36,14 @@ * Menu:  * OPTIONS::-* KEYS::-* SCREENS::+* keys::+* screens:: * ENVIRONMENT:: * FILES:: * BUGS::  -File: hledger-ui.info,  Node: OPTIONS,  Next: KEYS,  Prev: Top,  Up: Top+File: hledger-ui.info,  Node: OPTIONS,  Next: keys,  Prev: Top,  Up: Top  1 OPTIONS *********@@ -67,10 +67,10 @@       show period balances (changes) at startup instead of historical      balances-'-F --flat'+'-l --flat' -     show accounts as a list (default)-'-T --tree'+     show accounts as a flat list (default)+'-t --tree'       show accounts as a tree @@ -175,7 +175,14 @@      generate future transactions from periodic transaction rules, for      the next 6 months or till report end date.  In hledger-ui, also      make ordinary future transactions visible.+'--color=WHEN (or --colour=WHEN)' +     Should color-supporting commands use ANSI color codes in text+     output.  'auto' (default): whenever stdout seems to be a+     color-supporting terminal.  'always' or 'yes': always, useful eg+     when piping output into 'less -R'. 'never' or 'no': never.  A+     NO_COLOR environment variable overrides this.+    When a reporting option appears more than once in the command line, the last one takes precedence. @@ -193,134 +200,134 @@       show debug output (levels 1-9, default: 1) -   A @FILE argument will be expanded to the contents of FILE, which-should contain one command line option/argument per line.  (To prevent+   a @file argument will be expanded to the contents of file, which+should contain one command line option/argument per line.  (to prevent this, insert a '--' argument before.)  -File: hledger-ui.info,  Node: KEYS,  Next: SCREENS,  Prev: OPTIONS,  Up: Top+File: hledger-ui.info,  Node: keys,  Next: screens,  Prev: OPTIONS,  Up: Top -2 KEYS+2 keys ****** -'?' shows a help dialog listing all keys.  (Some of these also appear in-the quick help at the bottom of each screen.)  Press '?' again (or-'ESCAPE', or 'LEFT') to close it.  The following keys work on most-screens:+'?' shows a help dialog listing all keys.  (some of these also appear in+the quick help at the bottom of each screen.)  press '?' again (or+'escape', or 'left', or 'q') to close it.  the following keys work on+most screens: -   The cursor keys navigate: 'right' (or 'enter') goes deeper, 'left'+   the cursor keys navigate: 'right' (or 'enter') goes deeper, 'left' returns to the previous screen, 'up'/'down'/'page up'/'page-down'/'home'/'end' move up and down through lists.  Vi-style-('h'/'j'/'k'/'l') and Emacs-style ('CTRL-p'/'CTRL-n'/'CTRL-f'/'CTRL-b')-movement keys are also supported.  A tip: movement speed is limited by-your keyboard repeat rate, to move faster you may want to adjust it.-(If you're on a mac, the Karabiner app is one way to do that.)+down'/'home'/'end' move up and down through lists.  Emacs-style+('ctrl-p'/'ctrl-n'/'ctrl-f'/'ctrl-b') movement keys are also supported+(but not vi-style keys, since hledger-1.19, sorry!).  A tip: movement+speed is limited by your keyboard repeat rate, to move faster you may+want to adjust it.  (If you're on a mac, the karabiner app is one way to+do that.) -   With shift pressed, the cursor keys adjust the report period,+   with shift pressed, the cursor keys adjust the report period, limiting the transactions to be shown (by default, all are shown). 'shift-down/up' steps downward and upward through these standard report-period durations: year, quarter, month, week, day.  Then,-'shift-left/right' moves to the previous/next period.  't' sets the-report period to today.  With the '--watch' option, when viewing a+period durations: year, quarter, month, week, day.  then,+'shift-left/right' moves to the previous/next period.  'T' sets the+report period to today.  with the '--watch' option, when viewing a "current" period (the current day, week, month, quarter, or year), the-period will move automatically to track the current date.  To set a+period will move automatically to track the current date.  to set a non-standard period, you can use '/' and a 'date:' query.     '/' lets you set a general filter query limiting the data shown,-using the same query terms as in hledger and hledger-web.  While editing-the query, you can use CTRL-a/e/d/k, BS, cursor keys; press 'ENTER' to-set it, or 'ESCAPE'to cancel.  There are also keys for quickly adjusting+using the same query terms as in hledger and hledger-web.  while editing+the query, you can use ctrl-a/e/d/k, bs, cursor keys; press 'enter' to+set it, or 'escape'to cancel.  there are also keys for quickly adjusting some common filters like account depth and transaction status (see-below).  'BACKSPACE' or 'DELETE' removes all filters, showing all+below).  'backspace' or 'delete' removes all filters, showing all transactions. -   As mentioned above, by default hledger-ui hides future transactions -+   as mentioned above, by default hledger-ui hides future transactions - both ordinary transactions recorded in the journal, and periodic-transactions generated by rule.  'F' toggles forecast mode, in which-future/forecasted transactions are shown.  (experimental)+transactions generated by rule.  'f' toggles forecast mode, in which+future/forecasted transactions are shown.  _(experimental)_ -   'ESCAPE' removes all filters and jumps back to the top screen.  Or,-it cancels a minibuffer edit or help dialog in progress.+   'escape' resets the UI state and jumps back to the top screen,+restoring the app's initial state at startup.  Or, it cancels minibuffer+data entry or the help dialog. -   'CTRL-l' redraws the screen and centers the selection if possible+   'ctrl-l' redraws the screen and centers the selection if possible (selections near the top won't be centered, since we don't scroll above the top).     'g' reloads from the data file(s) and updates the current screen and-any previous screens.  (With large files, this could cause a noticeable+any previous screens.  (with large files, this could cause a noticeable pause.) -   'I' toggles balance assertion checking.  Disabling balance assertions+   'i' toggles balance assertion checking.  disabling balance assertions temporarily can be useful for troubleshooting.     'a' runs command-line hledger's add command, and reloads the updated-file.  This allows some basic data entry.+file.  this allows some basic data entry. -   'A' is like 'a', but runs the hledger-iadd tool, which provides a-terminal interface.  This key will be available if 'hledger-iadd' is-installed in $PATH.+   'a' is like 'a', but runs the hledger-iadd tool, which provides a+terminal interface.  this key will be available if 'hledger-iadd' is+installed in $path. -   'E' runs $HLEDGER_UI_EDITOR, or $EDITOR, or a default ('emacsclient--a "" -nw') on the journal file.  With some editors (emacs, vi), the+   'e' runs $hledger_ui_editor, or $editor, or a default ('emacsclient+-a "" -nw') on the journal file.  with some editors (emacs, vi), the cursor will be positioned at the current transaction when invoked from the register and transaction screens, and at the error location (if possible) when invoked from the error screen. -   'q' quits the application.--   Experimental:--   'B' toggles cost mode, showing amounts in their transaction price's-commodity (like toggling the '-B/--cost' flag).+   'b' toggles cost mode, showing amounts in their transaction price's+commodity (like toggling the '-b/--cost' flag). -   'V' toggles value mode, showing amounts' current market value in-their default valuation commodity (like toggling the '-V/--market'-flag).  Note, "current market value" means the value on the report end-date if specified, otherwise today.  To see the value on another date,-you can temporarily set that as the report end date.  Eg: to see a+   'v' toggles value mode, showing amounts' current market value in+their default valuation commodity (like toggling the '-v/--market'+flag).  note, "current market value" means the value on the report end+date if specified, otherwise today.  to see the value on another date,+you can temporarily set that as the report end date.  eg: to see a transaction as it was valued on july 30, go to the accounts or register screen, press '/', and add 'date:-7/30' to the query. -   At most one of cost or value mode can be active at once.+   at most one of cost or value mode can be active at once. -   There's not yet any visual reminder when cost or value mode is-active; for now pressing 'B' 'B' 'V' should reliably reset to normal+   there's not yet any visual reminder when cost or value mode is+active; for now pressing 'b' 'b' 'v' should reliably reset to normal mode. -   With -watch active, if you save an edit to the journal file while-viewing the transaction screen in cost or value mode, the 'B'/'V' keys-will stop working.  To work around, press g to force a manual reload, or+   with -watch active, if you save an edit to the journal file while+viewing the transaction screen in cost or value mode, the 'b'/'v' keys+will stop working.  to work around, press g to force a manual reload, or exit the transaction screen. -   Additional screen-specific keys are described below.+   'q' quits the application. +   additional screen-specific keys are described below.+ -File: hledger-ui.info,  Node: SCREENS,  Next: ENVIRONMENT,  Prev: KEYS,  Up: Top+File: hledger-ui.info,  Node: screens,  Next: ENVIRONMENT,  Prev: keys,  Up: Top -3 SCREENS+3 screens *********  * Menu: -* Accounts screen::+* accounts screen:: * Register screen:: * Transaction screen:: * Error screen::  -File: hledger-ui.info,  Node: Accounts screen,  Next: Register screen,  Up: SCREENS+File: hledger-ui.info,  Node: accounts screen,  Next: Register screen,  Up: screens -3.1 Accounts screen+3.1 accounts screen =================== -This is normally the first screen displayed.  It lists accounts and-their balances, like hledger's balance command.  By default, it shows+this is normally the first screen displayed.  it lists accounts and+their balances, like hledger's balance command.  by default, it shows all accounts and their latest ending balances (including the balances of subaccounts).  if you specify a query on the command line, it shows just the matched accounts and the balances from matched transactions. -   Account names are shown as a flat list by default.  Press 'T' to-toggle tree mode.  In flat mode, account balances are exclusive of+   Account names are shown as a flat list by default; press 't' to+toggle tree mode.  In list mode, account balances are exclusive of subaccounts, except where subaccounts are hidden by a depth limit (see below).  In tree mode, all account balances are inclusive of subaccounts.@@ -357,7 +364,7 @@    Press 'right' or 'enter' to view an account's transactions register.  -File: hledger-ui.info,  Node: Register screen,  Next: Transaction screen,  Prev: Accounts screen,  Up: SCREENS+File: hledger-ui.info,  Node: Register screen,  Next: Transaction screen,  Prev: accounts screen,  Up: screens  3.2 Register screen ===================@@ -381,11 +388,11 @@      balance you would see on a bank register for the current account.     Transactions affecting this account's subaccounts will be included in-the register if the accounts screen is in tree mode, or if it's in flat+the register if the accounts screen is in tree mode, or if it's in list mode but this account has subaccounts which are not shown due to a depth limit.  In other words, the register always shows the transactions contributing to the balance shown on the accounts screen.  Tree-mode/flat mode can be toggled with 'T' here also.+mode/list mode can be toggled with 't' here also.     'U' toggles filtering by unmarked status, showing or hiding unmarked transactions.  Similarly, 'P' toggles pending transactions, and 'C'@@ -404,7 +411,7 @@ detail.  -File: hledger-ui.info,  Node: Transaction screen,  Next: Error screen,  Prev: Register screen,  Up: SCREENS+File: hledger-ui.info,  Node: Transaction screen,  Next: Error screen,  Prev: Register screen,  Up: screens  3.3 Transaction screen ======================@@ -428,7 +435,7 @@ reload).  -File: hledger-ui.info,  Node: Error screen,  Prev: Transaction screen,  Up: SCREENS+File: hledger-ui.info,  Node: Error screen,  Prev: Transaction screen,  Up: screens  3.4 Error screen ================@@ -439,7 +446,7 @@ to cancel the reload attempt.)  -File: hledger-ui.info,  Node: ENVIRONMENT,  Next: FILES,  Prev: SCREENS,  Up: Top+File: hledger-ui.info,  Node: ENVIRONMENT,  Next: FILES,  Prev: screens,  Up: Top  4 ENVIRONMENT *************@@ -508,26 +515,26 @@  Tag Table: Node: Top71-Node: OPTIONS1474-Ref: #options1571-Node: KEYS5186-Ref: #keys5281-Node: SCREENS9557-Ref: #screens9662-Node: Accounts screen9752-Ref: #accounts-screen9880-Node: Register screen12096-Ref: #register-screen12251-Node: Transaction screen14248-Ref: #transaction-screen14406-Node: Error screen15276-Ref: #error-screen15398-Node: ENVIRONMENT15642-Ref: #environment15756-Node: FILES16563-Ref: #files16662-Node: BUGS16875-Ref: #bugs16952+Node: OPTIONS1476+Ref: #options1573+Node: keys5545+Ref: #keys5640+Node: screens9972+Ref: #screens10077+Node: accounts screen10167+Ref: #accounts-screen10295+Node: Register screen12510+Ref: #register-screen12665+Node: Transaction screen14662+Ref: #transaction-screen14820+Node: Error screen15690+Ref: #error-screen15812+Node: ENVIRONMENT16056+Ref: #environment16170+Node: FILES16977+Ref: #files17076+Node: BUGS17289+Ref: #bugs17366  End Tag Table 
hledger-ui.txt view
@@ -53,10 +53,10 @@               show  period balances (changes) at startup instead of historical               balances -       -F --flat-              show accounts as a list (default)+       -l --flat+              show accounts as a flat list (default) -       -T --tree+       -t --tree               show accounts as a tree         hledger input options:@@ -158,6 +158,13 @@               for  the  next 6 months or till report end date.  In hledger-ui,               also make ordinary future transactions visible. +       --color=WHEN (or --colour=WHEN)+              Should color-supporting commands use ANSI color  codes  in  text+              output.   'auto' (default): whenever stdout seems to be a color-+              supporting terminal.  'always' or 'yes': always, useful eg  when+              piping  output  into  'less  -R'.   'never'  or  'no': never.  A+              NO_COLOR environment variable overrides this.+        When a reporting option appears more than once in the command line, the        last one takes precedence. @@ -174,138 +181,137 @@        --debug[=N]               show debug output (levels 1-9, default: 1) -       A @FILE argument will be expanded to the contents of FILE, which should-       contain one command line option/argument per line.  (To  prevent  this,+       a @file argument will be expanded to the contents of file, which should+       contain one command line option/argument per line.  (to  prevent  this,        insert a -- argument before.) -KEYS-       ?  shows a help dialog listing all keys.  (Some of these also appear in-       the quick help at the bottom of each screen.) Press ? again (or ESCAPE,-       or LEFT) to close it.  The following keys work on most screens:+keys+       ?  shows a help dialog listing all keys.  (some of these also appear in+       the quick help at the bottom of each screen.) press ? again (or escape,+       or left, or q) to close it.  the following keys work on most screens: -       The cursor keys navigate: right (or enter) goes deeper, left returns to+       the cursor keys navigate: right (or enter) goes deeper, left returns to        the previous screen, up/down/page up/page  down/home/end  move  up  and-       down  through  lists.  Vi-style (h/j/k/l) and Emacs-style (CTRL-p/CTRL--       n/CTRL-f/CTRL-b) movement keys are also  supported.   A  tip:  movement-       speed  is  limited by your keyboard repeat rate, to move faster you may-       want to adjust it.  (If you're on a mac, the Karabiner app is  one  way-       to do that.)+       down through lists.  Emacs-style (ctrl-p/ctrl-n/ctrl-f/ctrl-b) movement+       keys are also supported (but not  vi-style  keys,  since  hledger-1.19,+       sorry!).   A  tip:  movement  speed  is limited by your keyboard repeat+       rate, to move faster you may want to adjust it.  (If you're on  a  mac,+       the karabiner app is one way to do that.) -       With  shift pressed, the cursor keys adjust the report period, limiting+       with  shift pressed, the cursor keys adjust the report period, limiting        the transactions to be shown  (by  default,  all  are  shown).   shift-        down/up  steps downward and upward through these standard report period-       durations: year, quarter, month,  week,  day.   Then,  shift-left/right-       moves  to the previous/next period.  t sets the report period to today.-       With the --watch option, when viewing a "current" period  (the  current+       durations: year, quarter, month,  week,  day.   then,  shift-left/right+       moves  to the previous/next period.  T sets the report period to today.+       with the --watch option, when viewing a "current" period  (the  current        day, week, month, quarter, or year), the period will move automatically-       to track the current date.  To set a non-standard period, you can use /+       to track the current date.  to set a non-standard period, you can use /        and a date: query.         /  lets  you  set a general filter query limiting the data shown, using-       the same query terms as in hledger and hledger-web.  While editing  the-       query,  you  can  use CTRL-a/e/d/k, BS, cursor keys; press ENTER to set-       it, or ESCAPEto cancel.  There are also keys for quickly adjusting some+       the same query terms as in hledger and hledger-web.  while editing  the+       query,  you  can  use ctrl-a/e/d/k, bs, cursor keys; press enter to set+       it, or escapeto cancel.  there are also keys for quickly adjusting some        common  filters  like account depth and transaction status (see below).-       BACKSPACE or DELETE removes all filters, showing all transactions.+       backspace or delete removes all filters, showing all transactions. -       As mentioned above, by default hledger-ui hides future  transactions  -+       as mentioned above, by default hledger-ui hides future  transactions  -        both ordinary transactions recorded in the journal, and periodic trans--       actions generated by rule.  F  toggles  forecast  mode,  in  which  fu-+       actions generated by rule.  f  toggles  forecast  mode,  in  which  fu-        ture/forecasted transactions are shown.  (experimental) -       ESCAPE  removes  all  filters and jumps back to the top screen.  Or, it-       cancels a minibuffer edit or help dialog in progress.+       escape  resets the UI state and jumps back to the top screen, restoring+       the app's initial state at startup.  Or, it cancels minibuffer data en-+       try or the help dialog. -       CTRL-l redraws the screen and centers the selection if possible (selec--       tions  near  the top won't be centered, since we don't scroll above the+       ctrl-l redraws the screen and centers the selection if possible (selec-+       tions near the top won't be centered, since we don't scroll  above  the        top). -       g reloads from the data file(s) and updates the current screen and  any-       previous  screens.   (With  large  files, this could cause a noticeable+       g  reloads from the data file(s) and updates the current screen and any+       previous screens.  (with large files, this  could  cause  a  noticeable        pause.) -       I toggles balance assertion  checking.   Disabling  balance  assertions+       i  toggles  balance  assertion  checking.  disabling balance assertions        temporarily can be useful for troubleshooting. -       a  runs  command-line  hledger's  add  command, and reloads the updated-       file.  This allows some basic data entry.+       a runs command-line hledger's add  command,  and  reloads  the  updated+       file.  this allows some basic data entry. -       A is like a, but runs the hledger-iadd tool, which provides a  terminal-       interface.   This key will be available if hledger-iadd is installed in-       $PATH.+       a  is like a, but runs the hledger-iadd tool, which provides a terminal+       interface.  this key will be available if hledger-iadd is installed  in+       $path. -       E runs $HLEDGER_UI_EDITOR, or $EDITOR, or a default (emacsclient -a  ""-       -nw)  on  the  journal file.  With some editors (emacs, vi), the cursor-       will be positioned at the current transaction  when  invoked  from  the-       register  and transaction screens, and at the error location (if possi-+       e  runs $hledger_ui_editor, or $editor, or a default (emacsclient -a ""+       -nw) on the journal file.  with some editors (emacs,  vi),  the  cursor+       will  be  positioned  at  the current transaction when invoked from the+       register and transaction screens, and at the error location (if  possi-        ble) when invoked from the error screen. -       q quits the application.--       Experimental:--       B toggles cost mode, showing amounts in their transaction price's  com--       modity (like toggling the -B/--cost flag).+       b  toggles cost mode, showing amounts in their transaction price's com-+       modity (like toggling the -b/--cost flag). -       V  toggles  value  mode, showing amounts' current market value in their-       default valuation  commodity  (like  toggling  the  -V/--market  flag).-       Note,  "current market value" means the value on the report end date if-       specified, otherwise today.  To see the value on another date, you  can-       temporarily  set that as the report end date.  Eg: to see a transaction-       as it was valued on july 30, go to the  accounts  or  register  screen,+       v toggles value mode, showing amounts' current market  value  in  their+       default  valuation  commodity  (like  toggling  the  -v/--market flag).+       note, "current market value" means the value on the report end date  if+       specified,  otherwise today.  to see the value on another date, you can+       temporarily set that as the report end date.  eg: to see a  transaction+       as  it  was  valued  on july 30, go to the accounts or register screen,        press /, and add date:-7/30 to the query. -       At most one of cost or value mode can be active at once.+       at most one of cost or value mode can be active at once. -       There's  not yet any visual reminder when cost or value mode is active;-       for now pressing B B V should reliably reset to normal mode.+       there's not yet any visual reminder when cost or value mode is  active;+       for now pressing b b v should reliably reset to normal mode. -       With --watch active, if you save an edit  to  the  journal  file  while-       viewing the transaction screen in cost or value mode, the B/V keys will-       stop working.  To work around, press g to force  a  manual  reload,  or+       with  --watch  active,  if  you  save an edit to the journal file while+       viewing the transaction screen in cost or value mode, the b/v keys will+       stop  working.   to  work  around, press g to force a manual reload, or        exit the transaction screen. -       Additional screen-specific keys are described below.+       q quits the application. -SCREENS-   Accounts screen-       This  is  normally  the  first screen displayed.  It lists accounts and-       their balances, like hledger's balance command.  By default,  it  shows-       all  accounts  and their latest ending balances (including the balances-       of subaccounts).  if you specify a query on the command line, it  shows+       additional screen-specific keys are described below.++screens+   accounts screen+       this is normally the first screen displayed.   it  lists  accounts  and+       their  balances,  like hledger's balance command.  by default, it shows+       all accounts and their latest ending balances (including  the  balances+       of  subaccounts).  if you specify a query on the command line, it shows        just the matched accounts and the balances from matched transactions. -       Account  names  are shown as a flat list by default.  Press T to toggle-       tree mode.  In flat mode, account  balances  are  exclusive  of  subac--       counts,  except  where subaccounts are hidden by a depth limit (see be-+       Account names are shown as a flat list by default; press  t  to  toggle+       tree  mode.   In  list  mode,  account balances are exclusive of subac-+       counts, except where subaccounts are hidden by a depth limit  (see  be-        low).  In tree mode, all account balances are inclusive of subaccounts. -       To see less detail, press a number key, 1 to 9, to set a  depth  limit.+       To  see  less detail, press a number key, 1 to 9, to set a depth limit.        Or use - to decrease and +/= to increase the depth limit.  0 shows even-       less detail, collapsing all accounts to a single total.  To remove  the+       less  detail, collapsing all accounts to a single total.  To remove the        depth limit, set it higher than the maximum account depth, or press ES-        CAPE.         H toggles between showing historical balances or period balances.  His--       torical  balances  (the  default) are ending balances at the end of the-       report period, taking into account all transactions  before  that  date-       (filtered  by  the  filter query if any), including transactions before-       the start of the report period.  In other  words,  historical  balances-       are  what  you  would  see on a bank statement for that account (unless-       disturbed by a filter query).  Period balances ignore transactions  be--       fore  the  report start date, so they show the change in balance during+       torical balances (the default) are ending balances at the  end  of  the+       report  period,  taking  into account all transactions before that date+       (filtered by the filter query if any),  including  transactions  before+       the  start  of  the report period.  In other words, historical balances+       are what you would see on a bank statement  for  that  account  (unless+       disturbed  by a filter query).  Period balances ignore transactions be-+       fore the report start date, so they show the change in  balance  during        the report period.  They are more useful eg when viewing a time log.         U toggles filtering by unmarked status, including or excluding unmarked        postings in the balances.  Similarly, P toggles pending postings, and C-       toggles cleared postings.  (By default, balances include all  postings;-       if  you activate one or two status filters, only those postings are in-+       toggles  cleared postings.  (By default, balances include all postings;+       if you activate one or two status filters, only those postings are  in-        cluded; and if you activate all three, the filter is removed.)         R toggles real mode, in which virtual postings are ignored. -       Z toggles nonzero mode, in which only accounts  with  nonzero  balances-       are  shown (hledger-ui shows zero items by default, unlike command-line+       Z  toggles  nonzero  mode, in which only accounts with nonzero balances+       are shown (hledger-ui shows zero items by default, unlike  command-line        hledger).         Press right or enter to view an account's transactions register.@@ -314,63 +320,63 @@        This screen shows the transactions affecting a particular account, like        a check register.  Each line represents one transaction and shows: -       o the  other  account(s)  involved, in abbreviated form.  (If there are-         both real and virtual postings, it shows only the  accounts  affected+       o the other account(s) involved, in abbreviated form.   (If  there  are+         both  real  and virtual postings, it shows only the accounts affected          by real postings.) -       o the  overall change to the current account's balance; positive for an+       o the overall change to the current account's balance; positive for  an          inflow to this account, negative for an outflow.         o the running historical total or period total for the current account,-         after  the  transaction.  This can be toggled with H.  Similar to the-         accounts screen, the historical total  is  affected  by  transactions-         (filtered  by  the  filter query) before the report start date, while+         after the transaction.  This can be toggled with H.  Similar  to  the+         accounts  screen,  the  historical  total is affected by transactions+         (filtered by the filter query) before the report  start  date,  while          the period total is not.  If the historical total is not disturbed by-         a  filter  query, it will be the running historical balance you would+         a filter query, it will be the running historical balance  you  would          see on a bank register for the current account. -       Transactions affecting this account's subaccounts will be  included  in-       the register if the accounts screen is in tree mode, or if it's in flat-       mode but this account has subaccounts which are  not  shown  due  to  a-       depth  limit.   In  other words, the register always shows the transac--       tions contributing to the balance shown on the accounts  screen.   Tree-       mode/flat mode can be toggled with T here also.+       Transactions  affecting  this account's subaccounts will be included in+       the register if the accounts screen is in tree mode, or if it's in list+       mode  but  this  account  has  subaccounts which are not shown due to a+       depth limit.  In other words, the register always  shows  the  transac-+       tions  contributing  to the balance shown on the accounts screen.  Tree+       mode/list mode can be toggled with t here also. -       U  toggles  filtering  by  unmarked  status, showing or hiding unmarked+       U toggles filtering by unmarked  status,  showing  or  hiding  unmarked        transactions.  Similarly, P toggles pending transactions, and C toggles-       cleared  transactions.  (By default, transactions with all statuses are-       shown; if you activate one or two status filters, only  those  transac-+       cleared transactions.  (By default, transactions with all statuses  are+       shown;  if  you activate one or two status filters, only those transac-        tions are shown; and if you activate all three, the filter is removed.)         R toggles real mode, in which virtual postings are ignored. -       Z  toggles  nonzero  mode, in which only transactions posting a nonzero-       change are shown (hledger-ui shows zero items by default,  unlike  com-+       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).         Press right (or enter) to view the selected transaction in detail.     Transaction screen-       This  screen  shows  a  single transaction, as a general journal entry,-       similar to hledger's print command and  journal  format  (hledger_jour-+       This screen shows a single transaction, as  a  general  journal  entry,+       similar  to  hledger's  print command and journal format (hledger_jour-        nal(5)). -       The  transaction's  date(s) and any cleared flag, transaction code, de--       scription, comments, along with all of its account postings are  shown.-       Simple  transactions  have  two  postings, but there can be more (or in+       The transaction's date(s) and any cleared flag, transaction  code,  de-+       scription,  comments, along with all of its account postings are shown.+       Simple transactions have two postings, but there can  be  more  (or  in        certain cases, fewer). -       up and down will step through all transactions listed in  the  previous-       account  register screen.  In the title bar, the numbers in parentheses-       show your position within that account register.  They  will  vary  de-+       up  and  down will step through all transactions listed in the previous+       account register screen.  In the title bar, the numbers in  parentheses+       show  your  position  within that account register.  They will vary de-        pending on which account register you came from (remember most transac--       tions appear in multiple account registers).  The #N  number  preceding+       tions  appear  in multiple account registers).  The #N number preceding        them is the transaction's position within the complete unfiltered jour-        nal, which is a more stable id (at least until the next reload).     Error screen-       This screen will appear if there is a problem, such as a  parse  error,-       when  you  press g to reload.  Once you have fixed the problem, press g+       This  screen  will appear if there is a problem, such as a parse error,+       when you press g to reload.  Once you have fixed the problem,  press  g        again to reload and resume normal operation.  (Or, you can press escape        to cancel the reload attempt.) @@ -378,15 +384,15 @@        COLUMNS The screen width to use.  Default: the full terminal width.         LEDGER_FILE The journal file path when not specified with -f.  Default:-       ~/.hledger.journal (on  windows,  perhaps  C:/Users/USER/.hledger.jour-+       ~/.hledger.journal  (on  windows,  perhaps C:/Users/USER/.hledger.jour-        nal). -       A  typical  value  is  ~/DIR/YYYY.journal,  where DIR is a version-con--       trolled finance directory and YYYY is the current year.  Or  ~/DIR/cur-+       A typical value is ~/DIR/YYYY.journal,  where  DIR  is  a  version-con-+       trolled  finance directory and YYYY is the current year.  Or ~/DIR/cur-        rent.journal, where current.journal is a symbolic link to YYYY.journal.         On Mac computers, you can set this and other environment variables in a-       more thorough way that also affects applications started from  the  GUI+       more  thorough  way that also affects applications started from the GUI        (say, an Emacs dock icon).  Eg on MacOS Catalina I have a ~/.MacOSX/en-        vironment.plist file containing @@ -397,13 +403,13 @@        To see the effect you may need to killall Dock, or reboot.  FILES-       Reads data from one or more files in hledger journal, timeclock,  time--       dot,   or   CSV   format   specified   with  -f,  or  $LEDGER_FILE,  or-       $HOME/.hledger.journal          (on          windows,           perhaps+       Reads  data from one or more files in hledger journal, timeclock, time-+       dot,  or  CSV  format  specified   with   -f,   or   $LEDGER_FILE,   or+       $HOME/.hledger.journal           (on          windows,          perhaps        C:/Users/USER/.hledger.journal).  BUGS-       The  need  to precede options with -- when invoked from hledger is awk-+       The need to precede options with -- when invoked from hledger  is  awk-        ward.         -f- doesn't work (hledger-ui can't read from stdin).@@ -411,24 +417,24 @@        -V affects only the accounts screen.         When you press g, the current and all previous screens are regenerated,-       which  may cause a noticeable pause with large files.  Also there is no+       which may cause a noticeable pause with large files.  Also there is  no        visual indication that this is in progress. -       --watch is not yet fully robust.  It works well for normal  usage,  but-       many  file  changes  in  a  short time (eg saving the file thousands of-       times with an editor macro) can cause problems at least on OSX.   Symp--       toms  include:  unresponsive UI, periodic resetting of the cursor posi-+       --watch  is  not yet fully robust.  It works well for normal usage, but+       many file changes in a short time (eg  saving  the  file  thousands  of+       times  with an editor macro) can cause problems at least on OSX.  Symp-+       toms include: unresponsive UI, periodic resetting of the  cursor  posi-        tion, momentary display of parse errors, high CPU usage eventually sub-        siding, and possibly a small but persistent build-up of CPU usage until        the program is restarted. -       Also, if you are viewing files mounted from  another  machine,  --watch+       Also,  if  you  are viewing files mounted from another machine, --watch        requires that both machine clocks are roughly in step.    REPORTING BUGS-       Report  bugs at http://bugs.hledger.org (or on the #hledger IRC channel+       Report bugs at http://bugs.hledger.org (or on the #hledger IRC  channel        or hledger mail list)  @@ -442,7 +448,7 @@   SEE ALSO-       hledger(1),     hledger-ui(1),     hledger-web(1),      hledger-api(1),+       hledger(1),      hledger-ui(1),     hledger-web(1),     hledger-api(1),        hledger_csv(5), hledger_journal(5), hledger_timeclock(5), hledger_time-        dot(5), ledger(1) @@ -450,4 +456,4 @@   -hledger-ui 1.18.1                  June 2020                     hledger-ui(1)+hledger-ui 1.18.99              September 2020                   hledger-ui(1)