Portability | portable |
---|---|
Stability | experimental |
Maintainer | yi-devel@googlegroups.com |
Safe Haskell | None |
Implements common ExCommand
s for the Vim keymap.
- parse :: GenParser Char () ExCommand -> EventString -> Maybe ExCommand
- parseWithBang :: GenParser Char () a -> (a -> Bool -> GenParser Char () ExCommand) -> EventString -> Maybe ExCommand
- parseWithBangAndCount :: GenParser Char () a -> (a -> Bool -> Maybe Int -> GenParser Char () ExCommand) -> EventString -> Maybe ExCommand
- parseRange :: GenParser Char () LineRange
- data OptionAction
- parseOption :: String -> (OptionAction -> Action) -> EventString -> Maybe ExCommand
- filenameComplete :: Text -> YiM [Text]
- forAllBuffers :: MonadEditor m => (BufferRef -> m ()) -> m ()
- pureExCommand :: ExCommand
- impureExCommand :: ExCommand
- errorNoWrite :: EditorM ()
- commandArgs :: GenParser Char () [Text]
- needsSaving :: BufferRef -> YiM Bool
Documentation
:: GenParser Char () a | The command name parser. |
-> (a -> Bool -> GenParser Char () ExCommand) | A parser for the remaining command arguments. |
-> EventString | The string to parse. |
-> Maybe ExCommand |
:: GenParser Char () a | The command name parser. |
-> (a -> Bool -> Maybe Int -> GenParser Char () ExCommand) | A parser for the remaining command arguments. |
-> EventString | The string to parse. |
-> Maybe ExCommand |
parseRange :: GenParser Char () LineRangeSource
data OptionAction Source
parseOption :: String -> (OptionAction -> Action) -> EventString -> Maybe ExCommandSource
filenameComplete :: Text -> YiM [Text]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 :: GenParser Char () [Text]Source
Useful parser for any Ex command that acts kind of like a shell
needsSaving :: BufferRef -> YiM BoolSource