yi-0.6.2.3: The Haskell-Scriptable EditorSource codeContentsIndex
Yi.Rectangle
Description
emacs-style rectangle manipulation functions.
Synopsis
alignRegion :: String -> BufferM ()
alignRegionOn :: String -> BufferM ()
getRectangle :: BufferM (Region, Int, Int)
multiSplit :: [Int] -> [a] -> [[a]]
onRectangle :: (Int -> Int -> String -> String) -> BufferM ()
openRectangle :: BufferM ()
stringRectangle :: String -> BufferM ()
killRectangle :: EditorM ()
yankRectangle :: EditorM ()
Documentation
alignRegion :: String -> BufferM ()Source
alignRegionOn :: String -> BufferM ()Source
Align each line of the region on the given regex. Fails if it is not found in any line.
getRectangle :: BufferM (Region, Int, Int)Source
Get the selected region as a rectangle. Returns the region extended to lines, plus the start and end columns of the rectangle.
multiSplit :: [Int] -> [a] -> [[a]]Source
Split a list at the boundaries given
onRectangle :: (Int -> Int -> String -> String) -> BufferM ()Source
openRectangle :: BufferM ()Source
stringRectangle :: String -> BufferM ()Source
killRectangle :: EditorM ()Source
yankRectangle :: EditorM ()Source
Produced by Haddock version 2.6.1