hledger-ui
Safe HaskellNone
LanguageGHC2021

Hledger.UI.RegisterScreen

Synopsis

Documentation

rsNew :: UIOpts -> Day -> Journal -> AccountName -> Bool -> Screen Source #

Construct a register screen listing the appropriate set of transactions, with the appropriate one selected. Screen-specific arguments: the account whose register this is, whether to force inclusive balances.

rsUpdate :: UIOpts -> Day -> Journal -> RegisterScreenState -> RegisterScreenState Source #

Update a register screen from these options, reporting date, and journal.

rsDraw :: UIState -> [Widget Name] Source #

rsHandle :: BrickEvent Name AppEvent -> EventM Name UIState () Source #

rsSetAccount :: AccountName -> Bool -> Screen -> Screen Source #

rsCenterSelection :: UIState -> EventM Name UIState UIState Source #

Scroll the selected item to the middle of the screen, when on the register screen. No effect on other screens.