From d727ac0cb7b03747d0688d939210af07da4cad60 Mon Sep 17 00:00:00 2001 From: Kenny Stuart Date: Fri, 24 Jun 2011 02:23:48 +0200 Subject: Allow enabling both dynamic and file type tags files When both options are enabled, project specific tags files take precedence if they exist and are writable, otherwise a file type tags file is used. (Stuart wrote this code, Peter added the check for supported file types) --- doc/easytags.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/easytags.txt') diff --git a/doc/easytags.txt b/doc/easytags.txt index 852716f..3269541 100644 --- a/doc/easytags.txt +++ b/doc/easytags.txt @@ -139,6 +139,10 @@ When you enable this option, the easytags plug-in will use the first filename returned by |tagfiles()| as the tags file to write. Note that 'tagfiles()' is reevaluated every time the plug-in runs. +If you've also enabled |g:easytags_by_filetype| the project specific tags file +must exist, even if it's empty; otherwise |g:easytags_by_filetype| will take +precedence. + ------------------------------------------------------------------------------- The *g:easytags_by_filetype* option @@ -151,6 +155,11 @@ existing directory. The easytags plug-in will create separate tags files for each file type in the configured directory. These tags files are automatically registered by the easytags plug-in when the file type of a buffer is set. +If you've also enabled |g:easytags_dynamic_files| and the project specific +tags file exists, and is writable, it will take precedence. If the project +specific tags file doesn't exist you can indicate you want to use project +specific tags by creating it. + Note that if you already have a global tags file you can create file type specific tags files from the global tags file using the command ':TagsByFileType'. -- cgit v1.2.3