fast-tags-2.0.0: Fast incremental vi and emacs tags.

Safe HaskellNone
LanguageHaskell98

FastTags.Vim

Description

Functions specific to vim tags.

Synopsis

Documentation

merge :: Int -> [FilePath] -> [[Pos TagVal]] -> [Text] -> [Text] Source #

Format new tags, drop old tags from the loaded files, merge old and new, and sort.

dropAdjacentInFile :: (a -> Int) -> Int -> [a] -> [a] Source #

Split this out so I can share it with emacs.

data Parsed Source #

The Ord instance determines the sort order for the tags file.

Constructors

Parsed 

Fields

Instances
Eq Parsed Source # 
Instance details

Defined in FastTags.Vim

Methods

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

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

Ord Parsed Source # 
Instance details

Defined in FastTags.Vim

Show Parsed Source # 
Instance details

Defined in FastTags.Vim

dropAdjacent :: Int -> [(Parsed, a)] -> [(Parsed, a)] Source #

If there are multiple tags with the same name and filename within a few lines, drop all but the first.

keyOnJust :: (a -> Maybe k) -> [a] -> [(k, a)] Source #

showTag :: Pos TagVal -> Text Source #

Convert a Tag to text, e.g.: AbsoluteMarktCmd/TimeStep.hs 67 ;" f