yi-core-0.14.1: Yi editor core library

LicenseGPL-2
Maintaineryi-devel@googlegroups.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010
Extensions
  • Cpp
  • TemplateHaskell
  • TemplateHaskellQuotes
  • OverloadedStrings
  • DeriveDataTypeable
  • DeriveGeneric
  • FlexibleContexts
  • GeneralizedNewtypeDeriving

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

Synopsis

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

newtype Tag Source #

Constructors

Tag 

Fields

Instances

Eq Tag Source # 

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

Ord Tag Source # 

Methods

compare :: Tag -> Tag -> Ordering #

(<) :: Tag -> Tag -> Bool #

(<=) :: Tag -> Tag -> Bool #

(>) :: Tag -> Tag -> Bool #

(>=) :: Tag -> Tag -> Bool #

max :: Tag -> Tag -> Tag #

min :: Tag -> Tag -> Tag #

Show Tag Source # 

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

Binary Tag Source # 

Methods

put :: Tag -> Put #

get :: Get Tag #

putList :: [Tag] -> Put #

data TagTable Source #

Constructors

TagTable 

Fields

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

readCTags :: Text -> Map Tag [(FilePath, Int)] Source #

Super simple parsing CTag format 1 parsing algorithm TODO: support search patterns in addition to lineno