yi-core-0.19.4: Yi editor core library

License | GPL-2
Maintainer | yi-devel@googlegroups.com
Stability | experimental
Portability | portable
Safe Haskell | None
Language | Haskell2010

Extensions

- OverloadedStrings
- PackageImports

Yi.Rectangle

Description

emacs-style rectangle manipulation functions.

Synopsis

- getRectangle :: BufferM (Region, Int, Int)
- multiSplit :: [Int] -> YiString -> [YiString]
- onRectangle :: (Int -> Int -> YiString -> YiString) -> BufferM ()
- openRectangle :: BufferM ()
- stringRectangle :: YiString -> BufferM ()
- killRectangle :: EditorM ()
- yankRectangle :: EditorM ()

# Documentation

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] -> YiString -> [YiString] Source #

Split text at the boundaries given

onRectangle :: (Int -> Int -> YiString -> YiString) -> BufferM () Source #

openRectangle :: BufferM () Source #

stringRectangle :: YiString -> BufferM () Source #

killRectangle :: EditorM () Source #

yankRectangle :: EditorM () Source #