| 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
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 Methods put :: GotoCharCommand -> Put Source # get :: Get GotoCharCommand Source # putList :: [GotoCharCommand] -> Put Source # | |||||
| Generic GotoCharCommand Source # | |||||
Defined in Yi.Keymap.Vim.Common Associated Types
Methods from :: GotoCharCommand -> Rep GotoCharCommand x Source # to :: Rep GotoCharCommand x -> GotoCharCommand Source # | |||||
| 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
| |
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 | |
data RepeatableAction Source #
Constructors
| RepeatableAction | |
Fields
| |
Instances
| Binary RepeatableAction Source # | |||||
Defined in Yi.Keymap.Vim.Common Methods put :: RepeatableAction -> Put Source # get :: Get RepeatableAction Source # putList :: [RepeatableAction] -> Put Source # | |||||
| Generic RepeatableAction Source # | |||||
Defined in Yi.Keymap.Vim.Common Associated Types
Methods from :: RepeatableAction -> Rep RepeatableAction x Source # to :: Rep RepeatableAction x -> RepeatableAction Source # | |||||
| Show RepeatableAction Source # | |||||
Defined in Yi.Keymap.Vim.Common | |||||
| Eq RepeatableAction Source # | |||||
Defined in Yi.Keymap.Vim.Common Methods (==) :: RepeatableAction -> RepeatableAction -> Bool Source # (/=) :: RepeatableAction -> RepeatableAction -> Bool Source # | |||||
| 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 Source # (<|>) :: MatchResult a -> MatchResult a -> MatchResult a Source # some :: MatchResult a -> MatchResult [a] Source # many :: MatchResult a -> MatchResult [a] Source # | |
| Applicative MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult Methods pure :: a -> MatchResult a Source # (<*>) :: MatchResult (a -> b) -> MatchResult a -> MatchResult b Source # liftA2 :: (a -> b -> c) -> MatchResult a -> MatchResult b -> MatchResult c Source # (*>) :: MatchResult a -> MatchResult b -> MatchResult b Source # (<*) :: MatchResult a -> MatchResult b -> MatchResult a Source # | |
| Functor MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult Methods fmap :: (a -> b) -> MatchResult a -> MatchResult b Source # (<$) :: a -> MatchResult b -> MatchResult a Source # | |
| Show (MatchResult a) Source # | |
Defined in Yi.Keymap.Vim.MatchResult | |
newtype EventString Source #
Instances
| Binary EventString Source # | |
Defined in Yi.Keymap.Vim.Common Methods put :: EventString -> Put Source # get :: Get EventString Source # putList :: [EventString] -> Put Source # | |
| Monoid EventString Source # | |
Defined in Yi.Keymap.Vim.Common Methods mempty :: EventString Source # mappend :: EventString -> EventString -> EventString Source # mconcat :: [EventString] -> EventString Source # | |
| Semigroup EventString Source # | |
Defined in Yi.Keymap.Vim.Common Methods (<>) :: EventString -> EventString -> EventString Source # sconcat :: NonEmpty EventString -> EventString Source # stimes :: Integral b => b -> EventString -> EventString Source # | |
| IsString EventString Source # | |
Defined in Yi.Keymap.Vim.Common Methods fromString :: String -> EventString Source # | |
| Show EventString Source # | |
Defined in Yi.Keymap.Vim.Common | |
| Eq EventString Source # | |
Defined in Yi.Keymap.Vim.Common Methods (==) :: EventString -> EventString -> Bool Source # (/=) :: EventString -> EventString -> Bool Source # | |
| Ord EventString Source # | |
Defined in Yi.Keymap.Vim.Common Methods compare :: EventString -> EventString -> Ordering Source # (<) :: EventString -> EventString -> Bool Source # (<=) :: EventString -> EventString -> Bool Source # (>) :: EventString -> EventString -> Bool Source # (>=) :: EventString -> EventString -> Bool Source # max :: EventString -> EventString -> EventString Source # min :: EventString -> EventString -> EventString Source # | |
newtype OperatorName Source #
Instances
| Binary OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common Methods put :: OperatorName -> Put Source # get :: Get OperatorName Source # putList :: [OperatorName] -> Put Source # | |
| Monoid OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common Methods mempty :: OperatorName Source # mappend :: OperatorName -> OperatorName -> OperatorName Source # mconcat :: [OperatorName] -> OperatorName Source # | |
| Semigroup OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common Methods (<>) :: OperatorName -> OperatorName -> OperatorName Source # sconcat :: NonEmpty OperatorName -> OperatorName Source # stimes :: Integral b => b -> OperatorName -> OperatorName Source # | |
| IsString OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common Methods fromString :: String -> OperatorName Source # | |
| Show OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common | |
| Eq OperatorName Source # | |
Defined in Yi.Keymap.Vim.Common Methods (==) :: OperatorName -> OperatorName -> Bool Source # (/=) :: OperatorName -> OperatorName -> Bool Source # | |
type RegisterName = Char Source #
data Substitution Source #
Constructors
| Substitution | |
Fields
| |
Instances
| Binary Substitution Source # | |||||
Defined in Yi.Keymap.Vim.Common Methods put :: Substitution -> Put Source # get :: Get Substitution Source # putList :: [Substitution] -> Put Source # | |||||
| Generic Substitution Source # | |||||
Defined in Yi.Keymap.Vim.Common Associated Types
Methods from :: Substitution -> Rep Substitution x Source # to :: Rep Substitution x -> Substitution Source # | |||||
| 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 Source # (<|>) :: MatchResult a -> MatchResult a -> MatchResult a Source # some :: MatchResult a -> MatchResult [a] Source # many :: MatchResult a -> MatchResult [a] Source # | |
| Applicative MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult Methods pure :: a -> MatchResult a Source # (<*>) :: MatchResult (a -> b) -> MatchResult a -> MatchResult b Source # liftA2 :: (a -> b -> c) -> MatchResult a -> MatchResult b -> MatchResult c Source # (*>) :: MatchResult a -> MatchResult b -> MatchResult b Source # (<*) :: MatchResult a -> MatchResult b -> MatchResult a Source # | |
| Functor MatchResult Source # | |
Defined in Yi.Keymap.Vim.MatchResult Methods fmap :: (a -> b) -> MatchResult a -> MatchResult b Source # (<$) :: a -> MatchResult b -> MatchResult a Source # | |
| Show (MatchResult a) Source # | |
Defined in Yi.Keymap.Vim.MatchResult | |
lookupBestMatch :: EventString -> [(EventString, a)] -> MatchResult a Source #
matchesString :: EventString -> EventString -> MatchResult () Source #