yi-0.11.0: The Haskell-Scriptable Editor

Portabilityportable
Stabilityexperimental
Maintaineryi-devel@googlegroups.com
Safe HaskellNone

Yi.History

Description

‘Command history’ implementation.

Synopsis

Documentation

newtype Histories Source

Constructors

Histories (Map Text History) 

data History Source

Constructors

History 

Instances

Eq History 
Show History 
Typeable History 
Default History 
Binary History 

dynKeyA :: (Default v, Ord k) => k -> Lens' (Map k v) vSource

historyStartGen :: Text -> EditorM ()Source

Start an input session with History

historyFinishGen :: Text -> EditorM Text -> EditorM ()Source

Finish the current input session with history.

historyFind :: [Text] -> Int -> Int -> Int -> Text -> IntSource

setHistorySource

Arguments

:: (MonadEditor m, Functor m) 
=> Text

identifier

-> History

History to set

-> Map Text History

Map of existing histories

-> m () 

Helper that sets the given history at ident and putEditorDyns the result.