| License | GPL-2 |
|---|---|
| Maintainer | yi-devel@googlegroups.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
| Extensions |
|
Yi.Tag
Description
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).
- lookupTag :: Tag -> TagTable -> [(FilePath, Int)]
- importTagTable :: FilePath -> IO TagTable
- hintTags :: TagTable -> Text -> [Text]
- completeTag :: TagTable -> Text -> Text
- newtype Tag = Tag {}
- mkTag :: String -> Tag
- unTag' :: Tag -> String
- data TagTable = TagTable {
- tagFileName :: FilePath
- tagBaseDir :: FilePath
- tagFileMap :: Map Tag [(FilePath, Int)]
- tagTrie :: Trie
- getTags :: EditorM (Maybe TagTable)
- setTags :: TagTable -> EditorM ()
- resetTags :: EditorM ()
- tagsFileList :: Field [FilePath]
Documentation
lookupTag :: Tag -> TagTable -> [(FilePath, Int)] Source
Find the location of a tag using the tag table. Returns a full path and line number
importTagTable :: FilePath -> IO TagTable Source
Read in a tag file from the system
hintTags :: TagTable -> Text -> [Text] Source
Gives all the possible expanded tags that could match a given prefix
completeTag :: TagTable -> Text -> Text Source
Extends the string to the longest certain length
Constructors
| TagTable | |
Fields
| |
tagsFileList :: Field [FilePath] Source