License | GPL-2 |
---|---|
Maintainer | yi-devel@googlegroups.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
‘Command history’ implementation.
- newtype Histories = Histories (Map Text History)
- data History = History {
- _historyCurrent :: Int
- _historyContents :: [Text]
- _historyPrefix :: Text
- dynKeyA :: (Default v, Ord k) => k -> Lens' (Map k v) v
- miniBuffer :: Text
- historyUp :: EditorM ()
- historyDown :: EditorM ()
- historyStart :: EditorM ()
- historyStartGen :: Text -> EditorM ()
- historyFinish :: EditorM ()
- historyFinishGen :: Text -> EditorM Text -> EditorM ()
- historyFind :: [Text] -> Int -> Int -> Int -> Text -> Int
- historyMove :: Text -> Int -> EditorM ()
- historyMoveGen :: Text -> Int -> EditorM Text -> EditorM Text
- historyPrefixSet :: Text -> EditorM ()
- historyPrefixSet' :: Text -> Text -> EditorM ()
- setHistory :: (MonadEditor m, Functor m) => Text -> History -> Map Text History -> m ()
Documentation
History | |
|
miniBuffer :: Text Source
historyDown :: EditorM () Source
historyStart :: EditorM () Source
historyStartGen :: Text -> EditorM () Source
Start an input session with History
historyFinish :: EditorM () Source
historyFinishGen :: Text -> EditorM Text -> EditorM () Source
Finish the current input session with history.
historyMove :: Text -> Int -> EditorM () Source
historyPrefixSet :: Text -> EditorM () Source
historyPrefixSet' :: Text -> Text -> EditorM () Source
:: (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 putEditorDyn
s
the result.