yi-core-0.14.1: Yi editor core library

LicenseGPL-2
Maintainer[email protected]
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010
Extensions
  • OverloadedStrings
  • PackageImports

Yi.Rectangle

Description

emacs-style rectangle manipulation functions.

Synopsis

Documentation

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

Split text at the boundaries given