yi-keymap-vim-0.19.0: Vim keymap for Yi editor
LicenseGPL-2
Maintaineryi-devel@googlegroups.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010
Extensions
  • Cpp
  • TemplateHaskell
  • TemplateHaskellQuotes
  • DeriveDataTypeable
  • DeriveGeneric
  • GeneralizedNewtypeDeriving

Yi.Keymap.Vim.Common

Description

Common types used by the vim keymap.

Documentation

data VimMode Source #

Constructors

Normal 
NormalOperatorPending OperatorName 
Insert Char

char denotes how state got into insert mode (i, a, etc.)

Replace 
ReplaceSingleChar 
InsertNormal

after C-o

InsertVisual

after C-o and one of v, V, C-v

Visual RegionStyle 
Ex 
Search 

Instances

Instances details
Binary VimMode Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

put :: VimMode -> Put

get :: Get VimMode

putList :: [VimMode] -> Put

Default VimMode Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

def :: VimMode Source #

Generic VimMode Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Associated Types

type Rep VimMode 
Instance details

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))))))

Methods

from :: VimMode -> Rep VimMode x

to :: Rep VimMode x -> VimMode

Show VimMode Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

showsPrec :: Int -> VimMode -> ShowS

show :: VimMode -> String

showList :: [VimMode] -> ShowS

Eq VimMode Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

(==) :: VimMode -> VimMode -> Bool

(/=) :: VimMode -> VimMode -> Bool

type Rep VimMode Source # 
Instance details

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 GotoCharCommand Source #

Constructors

GotoCharCommand !Char !Direction !RegionStyle 

Instances

Instances details
Binary GotoCharCommand Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

put :: GotoCharCommand -> Put

get :: Get GotoCharCommand

putList :: [GotoCharCommand] -> Put

Generic GotoCharCommand Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Associated Types

type Rep GotoCharCommand 
Instance details

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))))
type Rep GotoCharCommand Source # 
Instance details

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))))

data VimState Source #

Constructors

VimState 

Instances

Instances details
Binary VimState Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

put :: VimState -> Put

get :: Get VimState

putList :: [VimState] -> Put

Default VimState Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

def :: VimState Source #

Generic VimState Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Associated Types

type Rep VimState 
Instance details

Defined in Yi.Keymap.Vim.Common

type Rep VimState

Methods

from :: VimState -> Rep VimState x

to :: Rep VimState x -> VimState

YiVariable VimState Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

type Rep VimState Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

type Rep VimState

data Register Source #

Instances

Instances details
Binary Register Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

put :: Register -> Put

get :: Get Register

putList :: [Register] -> Put

Generic Register Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Associated Types

type Rep Register 
Instance details

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)))

Methods

from :: Register -> Rep Register x

to :: Rep Register x -> Register

Show Register Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

showsPrec :: Int -> Register -> ShowS

show :: Register -> String

showList :: [Register] -> ShowS

type Rep Register Source # 
Instance details

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 #

Constructors

Finish 
Drop 
Continue 

Instances

Instances details
Show RepeatToken Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

showsPrec :: Int -> RepeatToken -> ShowS

show :: RepeatToken -> String

showList :: [RepeatToken] -> ShowS

data RepeatableAction Source #

Instances

Instances details
Binary RepeatableAction Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Generic RepeatableAction Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Associated Types

type Rep RepeatableAction 
Instance details

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)))
Show RepeatableAction Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

showsPrec :: Int -> RepeatableAction -> ShowS

show :: RepeatableAction -> String

showList :: [RepeatableAction] -> ShowS

Eq RepeatableAction Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

type Rep RepeatableAction Source # 
Instance details

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

Instances details
Alternative MatchResult Source # 
Instance details

Defined in Yi.Keymap.Vim.MatchResult

Applicative MatchResult Source # 
Instance details

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 # 
Instance details

Defined in Yi.Keymap.Vim.MatchResult

Methods

fmap :: (a -> b) -> MatchResult a -> MatchResult b

(<$) :: a -> MatchResult b -> MatchResult a

Show (MatchResult a) Source # 
Instance details

Defined in Yi.Keymap.Vim.MatchResult

Methods

showsPrec :: Int -> MatchResult a -> ShowS

show :: MatchResult a -> String

showList :: [MatchResult a] -> ShowS

newtype EventString Source #

Constructors

Ev 

Fields

Instances

Instances details
Binary EventString Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

put :: EventString -> Put

get :: Get EventString

putList :: [EventString] -> Put

Monoid EventString Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Semigroup EventString Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

(<>) :: EventString -> EventString -> EventString #

sconcat :: NonEmpty EventString -> EventString

stimes :: Integral b => b -> EventString -> EventString

IsString EventString Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

fromString :: String -> EventString

Show EventString Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

showsPrec :: Int -> EventString -> ShowS

show :: EventString -> String

showList :: [EventString] -> ShowS

Eq EventString Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

(==) :: EventString -> EventString -> Bool

(/=) :: EventString -> EventString -> Bool

Ord EventString Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

unEv :: Lens' EventString Text Source #

newtype OperatorName Source #

Constructors

Op 

Fields

Instances

Instances details
Binary OperatorName Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

put :: OperatorName -> Put

get :: Get OperatorName

putList :: [OperatorName] -> Put

Monoid OperatorName Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Semigroup OperatorName Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

IsString OperatorName Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

fromString :: String -> OperatorName

Show OperatorName Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

showsPrec :: Int -> OperatorName -> ShowS

show :: OperatorName -> String

showList :: [OperatorName] -> ShowS

Eq OperatorName Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

(==) :: OperatorName -> OperatorName -> Bool

(/=) :: OperatorName -> OperatorName -> Bool

unOp :: Lens' OperatorName Text Source #

type RegisterName = Char Source #

data Substitution Source #

Constructors

Substitution 

Instances

Instances details
Binary Substitution Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Methods

put :: Substitution -> Put

get :: Get Substitution

putList :: [Substitution] -> Put

Generic Substitution Source # 
Instance details

Defined in Yi.Keymap.Vim.Common

Associated Types

type Rep Substitution 
Instance details

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)))))
type Rep Substitution Source # 
Instance details

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

Instances details
Alternative MatchResult Source # 
Instance details

Defined in Yi.Keymap.Vim.MatchResult

Applicative MatchResult Source # 
Instance details

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 # 
Instance details

Defined in Yi.Keymap.Vim.MatchResult

Methods

fmap :: (a -> b) -> MatchResult a -> MatchResult b

(<$) :: a -> MatchResult b -> MatchResult a

Show (MatchResult a) Source # 
Instance details

Defined in Yi.Keymap.Vim.MatchResult

Methods

showsPrec :: Int -> MatchResult a -> ShowS

show :: MatchResult a -> String

showList :: [MatchResult a] -> ShowS