Safe Haskell | None |
---|---|
Language | Haskell2010 |
- cursors :: App ()
- delete :: BufAction ()
- insertText :: YiString -> BufAction ()
- findNext :: YiString -> BufAction ()
- findNextFrom :: YiString -> Coord -> BufAction Coord
- findPrev :: YiString -> BufAction ()
- findPrevFrom :: YiString -> Coord -> BufAction Coord
- addRange :: CrdRange -> BufAction ()
- getRanges :: BufAction [CrdRange]
- setRanges :: [CrdRange] -> BufAction ()
- rangeDo :: (CrdRange -> BufAction a) -> BufAction [a]
- rangeDo_ :: (CrdRange -> BufAction a) -> BufAction ()
- overRanges :: ([CrdRange] -> [CrdRange]) -> BufAction ()
- moveRangesByN :: Int -> BufAction ()
- moveRangesByC :: Coord -> BufAction ()
Main
Registers listeners for the extension. The user should add this to their config.
Actions
insertText :: YiString -> BufAction () Source #
Insert text at the beginning of all ranges in the buffer.
findNext :: YiString -> BufAction () Source #
Move all ranges to the location of the next occurence of the given text.
findPrev :: YiString -> BufAction () Source #
Move all ranges to the location of the previous occurence of the given text.
Working with Cursor Ranges
rangeDo :: (CrdRange -> BufAction a) -> BufAction [a] Source #
Sequences actions over each range as a BufAction
moveRangesByN :: Int -> BufAction () Source #
Move all ranges by the given number of columns
moveRangesByC :: Coord -> BufAction () Source #
Move all ranges by the given number of rows and columns