aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2011-06-14 00:29:49 +0200
committerPeter Odding <peter@peterodding.com>2011-06-14 00:29:49 +0200
commitca9a4d8847db5aed86d94c0223914aca64029ab3 (patch)
tree5d1d426e5c4f17771a7ac95c056b6ea384bbf060 /plugin
parent1194a6b8a2e21db24fe051c0679d17b8a6878ebf (diff)
downloadvim-easytags-ca9a4d8847db5aed86d94c0223914aca64029ab3.tar.gz
Fix caching of tagged files (for file type specific tags files)
* The easytags plug-in caches known tagged files so it doesn't have to run :UpdateTags whenever you edit an existing file. The previous implementation was based on the assumption of one global tags file so wasn't compatible with the concept of file type specific tags files. This should now be fixed. * Previously the plug-in worked with a combination of parsed and unparsed tags file entries which made the code confusing. I've now cleaned this up so that the plug-in only keeps one type of data in memory. * Moved resetting of s:cached_filenames from the end to the start of the functions that call s:canonicalize() to avoid caching invalid data. PS. I've benchmarked two cache_tagged_files() implementations, one using taglist('.'), the other calling xolox#easytags#read_tagsfile() on each tags file reported by the tagfiles() function. It turns out that taglist('.') is very slow, which explains why I went with the code that calls xolox#easytags#read_tagsfile() in a loop.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/easytags.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/easytags.vim b/plugin/easytags.vim
index 9697967..433544d 100644
--- a/plugin/easytags.vim
+++ b/plugin/easytags.vim
@@ -1,10 +1,10 @@
" Vim plug-in
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: June 13, 2011
+" Last Change: June 14, 2011
" URL: http://peterodding.com/code/vim/easytags/
" Requires: Exuberant Ctags (http://ctags.sf.net)
" License: MIT
-" Version: 2.3.1
+" Version: 2.3.2
" Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip