License | GPL-2 |
---|---|
Maintainer | yi-devel@googlegroups.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
Common types used by the vim keymap.
Documentation
Normal | |
NormalOperatorPending OperatorName | |
Insert Char | char denotes how state got into insert mode ( |
Replace | |
ReplaceSingleChar | |
InsertNormal | after C-o |
InsertVisual | after C-o and one of v, V, C-v |
Visual RegionStyle | |
Ex | |
Search | |
Instances
data VimBinding Source #
VimBindingY (EventString -> VimState -> MatchResult (YiM RepeatToken)) | |
VimBindingE (EventString -> VimState -> MatchResult (EditorM RepeatToken)) |
data GotoCharCommand Source #
Instances
Generic GotoCharCommand Source # | |
Defined in Yi.Keymap.Vim.Common type Rep GotoCharCommand :: Type -> Type # from :: GotoCharCommand -> Rep GotoCharCommand x # to :: Rep GotoCharCommand x -> GotoCharCommand # | |
Binary GotoCharCommand Source # | |
Defined in Yi.Keymap.Vim.Common | |
type Rep GotoCharCommand Source # | |
Defined in Yi.Keymap.Vim.Common type Rep GotoCharCommand = D1 ('MetaData "GotoCharCommand" "Yi.Keymap.Vim.Common" "yi-keymap-vim-0.19.0-DGElYUoNdNVDATo1msUqQB" 'False) (C1 ('MetaCons "GotoCharCommand" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Char) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Direction) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 RegionStyle)))) |
VimState | |
|
Instances
Show Register Source # | |
Generic Register Source # | |
Binary Register Source # | |
type Rep Register Source # | |
Defined in Yi.Keymap.Vim.Common type Rep Register = D1 ('MetaData "Register" "Yi.Keymap.Vim.Common" "yi-keymap-vim-0.19.0-DGElYUoNdNVDATo1msUqQB" 'False) (C1 ('MetaCons "Register" 'PrefixI 'True) (S1 ('MetaSel ('Just "regRegionStyle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RegionStyle) :*: S1 ('MetaSel ('Just "regContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 YiString))) |
data RepeatToken Source #
Instances
Show RepeatToken Source # | |
Defined in Yi.Keymap.Vim.Common showsPrec :: Int -> RepeatToken -> ShowS # show :: RepeatToken -> String # showList :: [RepeatToken] -> ShowS # |
data RepeatableAction Source #
Instances
data MatchResult a Source #
Instances
Functor MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult fmap :: (a -> b) -> MatchResult a -> MatchResult b # (<$) :: a -> MatchResult b -> MatchResult a # | |
Applicative MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult pure :: a -> MatchResult a # (<*>) :: MatchResult (a -> b) -> MatchResult a -> MatchResult b # liftA2 :: (a -> b -> c) -> MatchResult a -> MatchResult b -> MatchResult c # (*>) :: MatchResult a -> MatchResult b -> MatchResult b # (<*) :: MatchResult a -> MatchResult b -> MatchResult a # | |
Alternative MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult empty :: MatchResult a # (<|>) :: MatchResult a -> MatchResult a -> MatchResult a # some :: MatchResult a -> MatchResult [a] # many :: MatchResult a -> MatchResult [a] # | |
Show (MatchResult a) Source # | |
Defined in Yi.Keymap.Vim.MatchResult showsPrec :: Int -> MatchResult a -> ShowS # show :: MatchResult a -> String # showList :: [MatchResult a] -> ShowS # |
newtype EventString Source #
Instances
newtype OperatorName Source #
Instances
Eq OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common (==) :: OperatorName -> OperatorName -> Bool # (/=) :: OperatorName -> OperatorName -> Bool # | |
Show OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common showsPrec :: Int -> OperatorName -> ShowS # show :: OperatorName -> String # showList :: [OperatorName] -> ShowS # | |
IsString OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common fromString :: String -> OperatorName # | |
Semigroup OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common (<>) :: OperatorName -> OperatorName -> OperatorName # sconcat :: NonEmpty OperatorName -> OperatorName # stimes :: Integral b => b -> OperatorName -> OperatorName # | |
Monoid OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common mempty :: OperatorName # mappend :: OperatorName -> OperatorName -> OperatorName # mconcat :: [OperatorName] -> OperatorName # | |
Binary OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common |
type RegisterName = Char Source #
data Substitution Source #
Substitution | |
|
Instances
data MatchResult a Source #
Instances
Functor MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult fmap :: (a -> b) -> MatchResult a -> MatchResult b # (<$) :: a -> MatchResult b -> MatchResult a # | |
Applicative MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult pure :: a -> MatchResult a # (<*>) :: MatchResult (a -> b) -> MatchResult a -> MatchResult b # liftA2 :: (a -> b -> c) -> MatchResult a -> MatchResult b -> MatchResult c # (*>) :: MatchResult a -> MatchResult b -> MatchResult b # (<*) :: MatchResult a -> MatchResult b -> MatchResult a # | |
Alternative MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult empty :: MatchResult a # (<|>) :: MatchResult a -> MatchResult a -> MatchResult a # some :: MatchResult a -> MatchResult [a] # many :: MatchResult a -> MatchResult [a] # | |
Show (MatchResult a) Source # | |
Defined in Yi.Keymap.Vim.MatchResult showsPrec :: Int -> MatchResult a -> ShowS # show :: MatchResult a -> String # showList :: [MatchResult a] -> ShowS # |
lookupBestMatch :: EventString -> [(EventString, a)] -> MatchResult a Source #
matchesString :: EventString -> EventString -> MatchResult () Source #