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

- Cpp
- TemplateHaskell
- TemplateHaskellQuotes

Yi.KillRing

Description

Killring operations.

Synopsis

- data Killring
- _krKilled :: Killring -> Bool
- _krContents :: Killring -> NonEmpty YiString
- krKilled :: Lens' Killring Bool
- krContents :: Lens' Killring (NonEmpty YiString)
- krEndCmd :: Killring -> Killring
- krPut :: Direction -> YiString -> Killring -> Killring
- krSet :: YiString -> Killring -> Killring
- krGet :: Killring -> YiString
- krEmpty :: Killring
- krLastYank :: Lens' Killring Bool

# Documentation

data Killring Source #

#### Instances

Instances details

Binary Killring Source # |
Instance details Defined in Yi.KillRing Methods put :: Killring -> Put Source # get :: Get Killring Source # putList :: [Killring] -> Put Source #
Show Killring Source # |
Instance details Defined in Yi.KillRing Methods showsPrec :: Int -> Killring -> ShowS Source # show :: Killring -> String Source # showList :: [Killring] -> ShowS Source #
Eq Killring Source # |
Instance details Defined in Yi.KillRing Methods (==) :: Killring -> Killring -> Bool Source # (/=) :: Killring -> Killring -> Bool Source #

_krKilled :: Killring -> Bool Source #

_krContents :: Killring -> NonEmpty YiString Source #

krKilled :: Lens' Killring Bool Source #

krContents :: Lens' Killring (NonEmpty YiString) Source #

krEndCmd :: Killring -> Killring Source #

Finish an atomic command, for the purpose of killring accumulation.

krPut :: Direction -> YiString -> Killring -> Killring Source #

Put some text in the killring. It's accumulated if the last command was a kill too

krSet :: YiString -> Killring -> Killring Source #

Set the top of the killring. Never accumulate the previous content.

krGet :: Killring -> YiString Source #

Get the top of the killring.

krEmpty :: Killring Source #

krLastYank :: Lens' Killring Bool Source #