License | GPL-2 |
---|---|
Maintainer | yi-devel@googlegroups.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
Implements common ExCommand
s for the Vim keymap.
Synopsis
- parse :: Parser ExCommand -> EventString -> Maybe ExCommand
- parseWithBang :: Parser a -> (a -> Bool -> Parser ExCommand) -> EventString -> Maybe ExCommand
- parseWithBangAndCount :: Parser a -> (a -> Bool -> Maybe Int -> Parser ExCommand) -> EventString -> Maybe ExCommand
- parseRange :: Parser (Maybe (BufferM Region))
- data BoolOptionAction
- data TextOptionAction
- parseBoolOption :: Text -> (BoolOptionAction -> Action) -> EventString -> Maybe ExCommand
- parseTextOption :: Text -> (TextOptionAction -> Action) -> EventString -> Maybe ExCommand
- filenameComplete :: Text -> YiM [Text]
- forAllBuffers :: MonadEditor m => (BufferRef -> m ()) -> m ()
- pureExCommand :: ExCommand
- impureExCommand :: ExCommand
- errorNoWrite :: EditorM ()
- commandArgs :: Parser [Text]
- needsSaving :: BufferRef -> YiM Bool
Documentation
parseBoolOption :: Text -> (BoolOptionAction -> Action) -> EventString -> Maybe ExCommand Source #
parseTextOption :: Text -> (TextOptionAction -> Action) -> EventString -> Maybe ExCommand Source #
forAllBuffers :: MonadEditor m => (BufferRef -> m ()) -> m () Source #
errorNoWrite :: EditorM () Source #
Show the common error message about an unsaved file on the status line.
commandArgs :: Parser [Text] Source #
Useful parser for any Ex command that acts kind of like a shell