yi-0.8.1: The Haskell-Scriptable Editor

Safe HaskellNone
LanguageHaskell2010

Yi.Tag

Description

A module for CTags integration

Synopsis

Documentation

lookupTag :: Tag -> TagTable -> Maybe (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 -> String -> [String] Source

Gives all the possible expanded tags that could match a given prefix

completeTag :: TagTable -> String -> String Source

Extends the string to the longest certain length

data TagTable Source

Constructors

TagTable 

Fields

tagFileName :: FilePath

local name of the tag file TODO: reload if this file is changed

tagBaseDir :: FilePath

path to the tag file directory tags are relative to this path

tagFileMap :: Map Tag (FilePath, Int)

map from tags to files

tagTrie :: Trie

trie to speed up tag hinting

getTags :: EditorM (Maybe TagTable) Source

Get the currently registered tag table

setTags :: TagTable -> EditorM () Source

Set a new TagTable

resetTags :: EditorM () Source

Reset the TagTable