License | GPL-2 |
---|---|
Maintainer | yi-devel@googlegroups.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
- type SnippetCmd = RWST (Int, Int) [MarkInfo] () BufferM
- data SnippetMark
- = SimpleMark !Int
- | ValuedMark !Int YiString
- | DependentMark !Int
- data MarkInfo
- newtype BufferMarks = BufferMarks {
- bufferMarks :: [MarkInfo]
- newtype DependentMarks = DependentMarks {}
- cursor :: Int -> SnippetMark
- cursorWith :: Int -> YiString -> SnippetMark
- dep :: Int -> SnippetMark
- isDependentMark :: MarkInfo -> Bool
- bufferMarkers :: MarkInfo -> [Mark]
- class MkSnippetCmd a b | a -> b where
- mkMark :: MonadTrans t => t BufferM Mark
- text :: YiString -> SnippetCmd ()
- (&) :: (MkSnippetCmd a any, MkSnippetCmd b c) => a -> b -> SnippetCmd c
- (&>) :: (MkSnippetCmd a b, MkSnippetCmd c d) => a -> (b -> c) -> SnippetCmd d
- runSnippet :: Bool -> SnippetCmd a -> BufferM a
- updateUpdatedMarks :: [Update] -> BufferM ()
- findEditedMarks :: [Update] -> BufferM [MarkInfo]
- dependentSiblings :: MarkInfo -> [[MarkInfo]] -> [MarkInfo]
- updateDependents :: MarkInfo -> BufferM ()
- updateDependents' :: MarkInfo -> [[MarkInfo]] -> BufferM ()
- markText :: MarkInfo -> BufferM YiString
- setMarkText :: YiString -> MarkInfo -> BufferM ()
- withSimpleRegion :: MarkInfo -> (Region -> BufferM Region) -> BufferM Region
- markRegion :: MarkInfo -> BufferM Region
- safeMarkRegion :: MarkInfo -> BufferM Region
- adjMarkRegion :: MarkInfo -> BufferM Region
- findOverlappingMarksWith :: (MarkInfo -> BufferM Region) -> ([[MarkInfo]] -> [MarkInfo]) -> Bool -> Region -> MarkInfo -> BufferM [MarkInfo]
- findOverlappingMarks :: ([[MarkInfo]] -> [MarkInfo]) -> Bool -> Region -> MarkInfo -> BufferM [MarkInfo]
- regionsOverlappingMarks :: Bool -> Region -> MarkInfo -> BufferM [MarkInfo]
- overlappingMarks :: Bool -> Bool -> MarkInfo -> BufferM [MarkInfo]
- allOverlappingMarks :: Bool -> MarkInfo -> BufferM [MarkInfo]
- dependentOverlappingMarks :: Bool -> MarkInfo -> BufferM [MarkInfo]
- nextBufferMark :: Bool -> BufferM (Maybe MarkInfo)
- isDependentMarker :: (MonadState FBuffer m, Functor m) => Mark -> m Bool
- safeDeleteMarkB :: Mark -> BufferM ()
- moveToNextBufferMark :: Bool -> BufferM ()
- newtype SupertabExt = Supertab (YiString -> Maybe (BufferM ()))
- superTab :: MonadInteract m Action Event => Bool -> SupertabExt -> m ()
- fromSnippets :: Bool -> [(YiString, SnippetCmd ())] -> SupertabExt
- snippet :: MkSnippetCmd a b => a -> SnippetCmd b
Documentation
data SnippetMark Source #
newtype BufferMarks Source #
newtype DependentMarks Source #
cursor :: Int -> SnippetMark Source #
cursorWith :: Int -> YiString -> SnippetMark Source #
dep :: Int -> SnippetMark Source #
isDependentMark :: MarkInfo -> Bool Source #
bufferMarkers :: MarkInfo -> [Mark] Source #
class MkSnippetCmd a b | a -> b where Source #
mkSnippetCmd :: a -> SnippetCmd b Source #
MkSnippetCmd String () Source # | |
MkSnippetCmd Text () Source # | |
MkSnippetCmd YiString () Source # | |
MkSnippetCmd SnippetMark () Source # | |
MkSnippetCmd (SnippetCmd a) a Source # | |
text :: YiString -> SnippetCmd () Source #
(&) :: (MkSnippetCmd a any, MkSnippetCmd b c) => a -> b -> SnippetCmd c infixr 5 Source #
(&>) :: (MkSnippetCmd a b, MkSnippetCmd c d) => a -> (b -> c) -> SnippetCmd d Source #
runSnippet :: Bool -> SnippetCmd a -> BufferM a Source #
updateUpdatedMarks :: [Update] -> BufferM () Source #
updateDependents :: MarkInfo -> BufferM () Source #
findOverlappingMarksWith :: (MarkInfo -> BufferM Region) -> ([[MarkInfo]] -> [MarkInfo]) -> Bool -> Region -> MarkInfo -> BufferM [MarkInfo] Source #
findOverlappingMarks :: ([[MarkInfo]] -> [MarkInfo]) -> Bool -> Region -> MarkInfo -> BufferM [MarkInfo] Source #
isDependentMarker :: (MonadState FBuffer m, Functor m) => Mark -> m Bool Source #
safeDeleteMarkB :: Mark -> BufferM () Source #
moveToNextBufferMark :: Bool -> BufferM () Source #
superTab :: MonadInteract m Action Event => Bool -> SupertabExt -> m () Source #
fromSnippets :: Bool -> [(YiString, SnippetCmd ())] -> SupertabExt Source #
Convert snippet description list into a SuperTab extension
snippet :: MkSnippetCmd a b => a -> SnippetCmd b Source #