| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Hledger.UI.Editor
Description
Editor integration.
Synopsis
- endPosition :: Maybe TextPosition
- runEditor :: Maybe TextPosition -> FilePath -> IO ExitCode
- runIadd :: FilePath -> IO ExitCode
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.