hledger-ui
Safe HaskellNone
LanguageGHC2021

Hledger.UI.Editor

Description

Editor integration.

Synopsis

Documentation

endPosition :: Maybe TextPosition Source #

The text position meaning "last line, first column".

runEditor :: Maybe TextPosition -> FilePath -> IO ExitCode Source #

Run the user's preferred text editor (or try a default editor), on the given file, blocking until it exits, and return the exit code; or raise an error. If a text position is provided, the editor will be focussed at that position in the file, if we know how.

runIadd :: FilePath -> IO ExitCode Source #

Run the hledger-iadd executable on the given file, blocking until it exits, and return the exit code; or raise an error. hledger-iadd is an alternative to the built-in add command.