yi-0.11.0: The Haskell-Scriptable Editor

Portabilityportable
Stabilityexperimental
Maintaineryi-devel@googlegroups.com
Safe HaskellNone

Yi.Keymap.Keys

Description

Combinators for building keymaps.

Synopsis

Documentation

module Yi.Event

textChar :: KeymapM CharSource

Parse any character that can be inserted in the text.

charOf :: MonadInteract m w Event => (Event -> Event) -> Char -> Char -> m CharSource

spec :: Key -> EventSource

Convert a special key into an event

char :: Char -> EventSource

(>>!) :: (MonadInteract m Action Event, YiAction a x, Show x) => m b -> a -> m ()Source

 p >>! act = p >> 'write' act

(>>=!) :: (MonadInteract m Action Event, YiAction a x, Show x) => m b -> (b -> a) -> m ()Source

 p >>=! act = p >>= 'write' . act

(?>>) :: MonadInteract m action Event => Event -> m a -> m aSource

 ev ?>> proc = event ev >> proc

(?>>!) :: (MonadInteract m Action Event, YiAction a x, Show x) => Event -> a -> m ()Source

 ev ?>>! act = event ev >> write act

(?*>>) :: MonadInteract m action Event => [Event] -> m a -> m aSource

 ev ?*>> proc = events ev >> proc

(?*>>!) :: (MonadInteract m Action Event, YiAction a x, Show x) => [Event] -> a -> m ()Source

 ev ?*>>! act = events ev >> write act

ctrlCh :: Char -> EventSource

metaCh :: Char -> EventSource

hyperCh :: Char -> EventSource

optMod :: MonadInteract m w Event => (Event -> Event) -> Event -> m EventSource

optMod f ev produces a MonadInteract that consumes ev or f ev

pString :: MonadInteract m w Event => String -> m [Event]Source