| License | GPL-2 |
|---|---|
| Maintainer | yi-devel@googlegroups.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
| Extensions |
|
Yi.Keymap.Vim.Common
Description
Common types used by the vim keymap.
Documentation
Constructors
| 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 | |
Fields | |
Instances
| Binary VimMode Source # | |||||
| Default VimMode Source # | |||||
Defined in Yi.Keymap.Vim.Common | |||||
| Generic VimMode Source # | |||||
Defined in Yi.Keymap.Vim.Common Associated Types
| |||||
| Show VimMode Source # | |||||
| Eq VimMode Source # | |||||
| type Rep VimMode Source # | |||||
Defined in Yi.Keymap.Vim.Common type Rep VimMode = D1 ('MetaData "VimMode" "Yi.Keymap.Vim.Common" "yi-keymap-vim-0.19.0-fQG0LI2vTD5pZqqSZy2CX" 'False) (((C1 ('MetaCons "Normal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NormalOperatorPending" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OperatorName))) :+: (C1 ('MetaCons "Insert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Char)) :+: (C1 ('MetaCons "Replace" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReplaceSingleChar" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "InsertNormal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InsertVisual" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Visual" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RegionStyle)) :+: (C1 ('MetaCons "Ex" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Search" 'PrefixI 'True) (S1 ('MetaSel ('Just "previousMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VimMode) :*: S1 ('MetaSel ('Just "direction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Direction)))))) | |||||
data VimBinding Source #
Constructors
| VimBindingY (EventString -> VimState -> MatchResult (YiM RepeatToken)) | |
| VimBindingE (EventString -> VimState -> MatchResult (EditorM RepeatToken)) |
data GotoCharCommand Source #
Constructors
| GotoCharCommand !Char !Direction !RegionStyle |
Instances
| Binary GotoCharCommand Source # | |||||
Defined in Yi.Keymap.Vim.Common | |||||
| Generic GotoCharCommand Source # | |||||
Defined in Yi.Keymap.Vim.Common Associated Types
Methods from :: GotoCharCommand -> Rep GotoCharCommand x to :: Rep GotoCharCommand x -> GotoCharCommand | |||||
| 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-fQG0LI2vTD5pZqqSZy2CX" '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)))) | |||||
Constructors
| VimState | |
Fields
| |
Instances
| Binary VimState Source # | |||||
| Default VimState Source # | |||||
Defined in Yi.Keymap.Vim.Common | |||||
| Generic VimState Source # | |||||
Defined in Yi.Keymap.Vim.Common Associated Types
| |||||
| YiVariable VimState Source # | |||||
Defined in Yi.Keymap.Vim.Common | |||||
| type Rep VimState Source # | |||||
Defined in Yi.Keymap.Vim.Common type Rep VimState | |||||
Constructors
| Register | |
Fields | |
Instances
| Binary Register Source # | |||||
| Generic Register Source # | |||||
Defined in Yi.Keymap.Vim.Common Associated Types
| |||||
| Show 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-fQG0LI2vTD5pZqqSZy2CX" '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 Methods showsPrec :: Int -> RepeatToken -> ShowS show :: RepeatToken -> String showList :: [RepeatToken] -> ShowS | |
data RepeatableAction Source #
Constructors
| RepeatableAction | |
Fields
| |
Instances
| Binary RepeatableAction Source # | |||||
Defined in Yi.Keymap.Vim.Common Methods put :: RepeatableAction -> Put get :: Get RepeatableAction putList :: [RepeatableAction] -> Put | |||||
| Generic RepeatableAction Source # | |||||
Defined in Yi.Keymap.Vim.Common Associated Types
Methods from :: RepeatableAction -> Rep RepeatableAction x to :: Rep RepeatableAction x -> RepeatableAction | |||||
| Show RepeatableAction Source # | |||||
Defined in Yi.Keymap.Vim.Common Methods showsPrec :: Int -> RepeatableAction -> ShowS show :: RepeatableAction -> String showList :: [RepeatableAction] -> ShowS | |||||
| Eq RepeatableAction Source # | |||||
Defined in Yi.Keymap.Vim.Common Methods (==) :: RepeatableAction -> RepeatableAction -> Bool (/=) :: RepeatableAction -> RepeatableAction -> Bool | |||||
| type Rep RepeatableAction Source # | |||||
Defined in Yi.Keymap.Vim.Common type Rep RepeatableAction = D1 ('MetaData "RepeatableAction" "Yi.Keymap.Vim.Common" "yi-keymap-vim-0.19.0-fQG0LI2vTD5pZqqSZy2CX" 'False) (C1 ('MetaCons "RepeatableAction" 'PrefixI 'True) (S1 ('MetaSel ('Just "raPreviousCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "raActionString") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EventString))) | |||||
data MatchResult a Source #
Constructors
| NoMatch | |
| PartialMatch | |
| WholeMatch a |
Instances
| Alternative MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult Methods empty :: MatchResult a (<|>) :: MatchResult a -> MatchResult a -> MatchResult a some :: MatchResult a -> MatchResult [a] many :: MatchResult a -> MatchResult [a] | |
| Applicative MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult Methods 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 | |
| Functor MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult Methods fmap :: (a -> b) -> MatchResult a -> MatchResult b (<$) :: a -> MatchResult b -> MatchResult a | |
| Show (MatchResult a) Source # | |
Defined in Yi.Keymap.Vim.MatchResult Methods showsPrec :: Int -> MatchResult a -> ShowS show :: MatchResult a -> String showList :: [MatchResult a] -> ShowS | |
newtype EventString Source #
Instances
unEv :: Lens' EventString Text Source #
newtype OperatorName Source #
Instances
| Binary OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common | |
| Monoid OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common Methods mappend :: OperatorName -> OperatorName -> OperatorName mconcat :: [OperatorName] -> OperatorName | |
| Semigroup OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common Methods (<>) :: OperatorName -> OperatorName -> OperatorName # sconcat :: NonEmpty OperatorName -> OperatorName stimes :: Integral b => b -> OperatorName -> OperatorName | |
| IsString OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common Methods fromString :: String -> OperatorName | |
| Show OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common Methods showsPrec :: Int -> OperatorName -> ShowS show :: OperatorName -> String showList :: [OperatorName] -> ShowS | |
| Eq OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common | |
unOp :: Lens' OperatorName Text Source #
type RegisterName = Char Source #
data Substitution Source #
Constructors
| Substitution | |
Fields
| |
Instances
| Binary Substitution Source # | |||||
Defined in Yi.Keymap.Vim.Common | |||||
| Generic Substitution Source # | |||||
Defined in Yi.Keymap.Vim.Common Associated Types
| |||||
| type Rep Substitution Source # | |||||
Defined in Yi.Keymap.Vim.Common type Rep Substitution = D1 ('MetaData "Substitution" "Yi.Keymap.Vim.Common" "yi-keymap-vim-0.19.0-fQG0LI2vTD5pZqqSZy2CX" 'False) (C1 ('MetaCons "Substitution" 'PrefixI 'True) ((S1 ('MetaSel ('Just "subsFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 YiString) :*: S1 ('MetaSel ('Just "subsTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 YiString)) :*: (S1 ('MetaSel ('Just "subsFlagGlobal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "subsFlagCaseInsensitive") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "subsFlagConfirm") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))))) | |||||
data MatchResult a Source #
Constructors
| NoMatch | |
| PartialMatch | |
| WholeMatch a |
Instances
| Alternative MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult Methods empty :: MatchResult a (<|>) :: MatchResult a -> MatchResult a -> MatchResult a some :: MatchResult a -> MatchResult [a] many :: MatchResult a -> MatchResult [a] | |
| Applicative MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult Methods 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 | |
| Functor MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult Methods fmap :: (a -> b) -> MatchResult a -> MatchResult b (<$) :: a -> MatchResult b -> MatchResult a | |
| Show (MatchResult a) Source # | |
Defined in Yi.Keymap.Vim.MatchResult Methods 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 #