License | GPL-2 |
---|---|
Maintainer | yi-devel@googlegroups.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
A module for CTags integration. Note that this reads the ‘tags’
file produced by hasktags
, not the ‘TAGS’ file which uses a
different format (etags).
Synopsis
- lookupTag :: Tag -> TagTable -> [(FilePath, Int)]
- importTagTable :: FilePath -> IO TagTable
- hintTags :: TagTable -> Text -> [Text]
- completeTag :: TagTable -> Text -> Text
- newtype Tag = Tag {}
- unTag' :: Tag -> Text
- data TagTable = TagTable {
- tagFileName :: FilePath
- tagBaseDir :: FilePath
- tagFileMap :: Map Tag [(FilePath, Int)]
- tagCompletionTree :: CompletionTree Text
- getTags :: EditorM (Maybe TagTable)
- setTags :: TagTable -> EditorM ()
- resetTags :: EditorM ()
- tagsFileList :: Field [FilePath]
- readCTags :: Text -> Map Tag [(FilePath, Int)]
Documentation
lookupTag :: Tag -> TagTable -> [(FilePath, Int)] Source #
Find the location of a tag using the tag table. Returns a full path and line number
hintTags :: TagTable -> Text -> [Text] Source #
Gives all the possible expanded tags that could match a given prefix
TagTable | |
|
Instances
Generic TagTable Source # | |
Binary TagTable Source # | |
type Rep TagTable Source # | |
Defined in Yi.Tag type Rep TagTable = D1 (MetaData "TagTable" "Yi.Tag" "yi-core-0.18.0-2mRGjmA9uZSHB9MvTT6v9U" False) (C1 (MetaCons "TagTable" PrefixI True) ((S1 (MetaSel (Just "tagFileName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FilePath) :*: S1 (MetaSel (Just "tagBaseDir") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FilePath)) :*: (S1 (MetaSel (Just "tagFileMap") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Map Tag [(FilePath, Int)])) :*: S1 (MetaSel (Just "tagCompletionTree") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (CompletionTree Text))))) |
tagsFileList :: Field [FilePath] Source #