Safe Haskell | None |
---|---|
Language | Haskell2010 |
- bufDo :: Monoid a => BufAction a -> Action a
- focusDo :: BufAction a -> Action a
- exit :: Action ()
- addBuffer :: Text -> Action ()
- addBufferThen :: Text -> BufAction a -> Action a
- nextBuf :: Action ()
- prevBuf :: Action ()
- overRange :: Range -> (Text -> Text) -> BufAction ()
- replaceRange :: Range -> Text -> BufAction ()
- deleteRange :: Range -> BufAction ()
- insertAt :: Coord -> Text -> BufAction ()
- sizeOf :: YiString -> Coord
Performing Actions on Buffers
Editor Actions
This signals to the editor that you'd like to shutdown. The current events
will finish processing, then the onExit
hook will run,
then the editor will exit.
addBufferThen :: Text -> BufAction a -> Action a Source #
This adds a new buffer with the given text then performs the given
BufAction
agains that buffer.
Buffer Actions
overRange :: Range -> (Text -> Text) -> BufAction () Source #
Runs the given function over the text in the range, replacing it with the results.
replaceRange :: Range -> Text -> BufAction () Source #
Replaces the text in the given range from the buffer.
deleteRange :: Range -> BufAction () Source #
Deletes the text in the given range from the buffer.