| License | GPL-2 |
|---|---|
| Maintainer | yi-devel@googlegroups.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
| Extensions |
|
Yi.Keymap.Vim.Ex.Commands.Common
Description
Implements common ExCommands 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 s (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 :: GenParser Char () [Text]
- needsSaving :: BufferRef -> YiM Bool
Documentation
data BoolOptionAction Source
Constructors
| BoolOptionSet !Bool | |
| BoolOptionInvert | |
| BoolOptionAsk |
data TextOptionAction Source
Constructors
| TextOptionSet !Text | |
| TextOptionAsk |
parseBoolOption :: Text -> (BoolOptionAction -> Action) -> EventString -> Maybe ExCommand Source
parseTextOption :: Text -> (TextOptionAction -> Action) -> EventString -> Maybe ExCommand Source
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 Bool Source