aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2014-09-14 11:07:50 +0200
committerPeter Odding <peter@peterodding.com>2014-09-14 11:07:50 +0200
commitb4d5dd6e12c8b158d8f0598ba98a45650b6fc956 (patch)
tree4cbf4fc6d627935594e289676e55182da6b79d96
parent364cfcc514f1cd3386221aaa79bf9f12b85b6574 (diff)
parent2d6a2ba16ee9777ac8c13a25210bf159444770fe (diff)
downloadvim-easytags-b4d5dd6e12c8b158d8f0598ba98a45650b6fc956.tar.gz
Merge pull request #95: Add g:easytags_suppress_report option
-rw-r--r--README.md6
-rw-r--r--autoload/xolox/easytags.vim30
-rw-r--r--doc/easytags.txt9
3 files changed, 31 insertions, 14 deletions
diff --git a/README.md b/README.md
index 978b56a..46e8de3 100644
--- a/README.md
+++ b/README.md
@@ -217,6 +217,12 @@ If this is set and not false, it will suppress the warning on startup if ctags i
:let g:easytags_suppress_ctags_warning = 1
+### The `g:easytags_suppress_report` option
+
+If this is set and not false, it will suppress the report displayed on tag updates.
+
+ :let g:easytags_suppress_report = 1
+
## Customizing the easytags plug-in
Advanced users may wish to customize how the easytags plug-in works beyond the point of changing configuration defaults. This section contains some hints about this. If you have suggestions, please feel free to submit them.
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim
index 5a67991..23f6288 100644
--- a/autoload/xolox/easytags.vim
+++ b/autoload/xolox/easytags.vim
@@ -1,9 +1,9 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: August 8, 2014
+" Last Change: September 14, 2014
" URL: http://peterodding.com/code/vim/easytags/
-let g:xolox#easytags#version = '3.6.6'
+let g:xolox#easytags#version = '3.6.7'
let g:xolox#easytags#default_pattern_prefix = '\C\<'
let g:xolox#easytags#default_pattern_suffix = '\>'
@@ -552,18 +552,20 @@ endfunction
" Miscellaneous script-local functions. {{{1
function! s:report_results(response, async) " {{{2
- let actions = []
- if a:response['num_updated'] > 0
- call add(actions, printf('updated %i tags', a:response['num_updated']))
- endif
- if a:response['num_filtered'] > 0
- call add(actions, printf('filtered %i invalid tags', a:response['num_filtered']))
- endif
- if !empty(actions)
- let function = a:async ? 'xolox#misc#msg#debug' : 'xolox#misc#msg#info'
- let actions_string = xolox#misc#str#ucfirst(join(actions, ' and '))
- let command_type = a:async ? 'asynchronously' : 'synchronously'
- call call(function, ["easytags.vim %s: %s in %s (%s).", g:xolox#easytags#version, actions_string, a:response['elapsed_time'], command_type])
+ if !xolox#misc#option#get('easytags_suppress_report', 0)
+ let actions = []
+ if a:response['num_updated'] > 0
+ call add(actions, printf('updated %i tags', a:response['num_updated']))
+ endif
+ if a:response['num_filtered'] > 0
+ call add(actions, printf('filtered %i invalid tags', a:response['num_filtered']))
+ endif
+ if !empty(actions)
+ let function = a:async ? 'xolox#misc#msg#debug' : 'xolox#misc#msg#info'
+ let actions_string = xolox#misc#str#ucfirst(join(actions, ' and '))
+ let command_type = a:async ? 'asynchronously' : 'synchronously'
+ call call(function, ["easytags.vim %s: %s in %s (%s).", g:xolox#easytags#version, actions_string, a:response['elapsed_time'], command_type])
+ endif
endif
endfunction
diff --git a/doc/easytags.txt b/doc/easytags.txt
index 99ae24c..f07e8cc 100644
--- a/doc/easytags.txt
+++ b/doc/easytags.txt
@@ -27,6 +27,7 @@ Contents ~
15. The |g:easytags_include_members| option
16. The |g:easytags_resolve_links| option
17. The |g:easytags_suppress_ctags_warning| option
+ 18. The |g:easytags_suppress_report| option
5. Customizing the easytags plug-in |customizing-easytags-plug-in|
1. Passing custom command line arguments to Exuberant Ctags |easytags-passing-custom-command-line-arguments-to-exuberant-ctags|
2. Update & highlight tags immediately after save |easytags-update-highlight-tags-immediately-after-save|
@@ -468,6 +469,14 @@ is not found or not recent enough.
>
:let g:easytags_suppress_ctags_warning = 1
<
+-------------------------------------------------------------------------------
+The *g:easytags_suppress_report* option
+
+If this is set and not false, it will suppress the report displayed on tag
+updates.
+>
+ :let g:easytags_suppress_report = 1
+<
===============================================================================
*customizing-easytags-plug-in*
Customizing the easytags plug-in ~