caio.co/de/querycommandcomplete.vim

Update documentation with new options and stats

Id
edddaedfcf3c3e73b6e15d38cf2ff0dfdb91f12a
Author
Caio
Commit time
2012-12-29T20:04:16+01:00

Modified README

@@ -1,7 +1,7
Query Command Complete
======================

-Vim plugin to suggest completions with the results or an external
+Vim plugin to suggest completions with the results of an external
query command.

The original intention is to use it as a mutt query_command wrapper
@@ -9,11 +9,12
to any other kind of functionality by modifying the exposed setting
parameters.

-Last Change: 2012 Sep 17
-Maintainer: Caio Romão <caioromao@gmail.com>
+Last Change: 2012 Dec 29
+Author: Caio Romão <caioromao@gmail.com>
License: This file is placed in the public domain
Contributors:
Brian Henderson <https://github.com/bhenderson>
+ Mark Stillwell <https://github.com/marklee77>

Setup:
This plugin exports the completion function QueryCommandComplete,
@@ -43,3 +44,15
Pattern used to match against the current line to decide
whether to call the query command
default: '^\(To\|Cc\|Bcc\|From\|Reply-To\):'
+
+ g:qcc_multiline
+ Whether to try matching g:qcc_pattern against the current
+ and any previous line
+ default: 0
+
+ g:qcc_multiline_pattern
+ Pattern to match against the current line when deciding
+ wether to keep looking for a line that matches g:qcc_pattern
+ This provides finer control over the recursion, which
+ is useful if calling the completion on really big files.
+ default: '.*'

Modified plugin/querycommandcomplete.vim

@@ -1,7 +1,7
" Query Command Complete
" ======================
"
-" Vim plugin to suggest completions with the results or an external
+" Vim plugin to suggest completions with the results of an external
" query command.
"
" The original intention is to use it as a mutt query_command wrapper
@@ -9,11 +9,12
" to any other kind of functionality by modifying the exposed setting
" parameters.
"
-" Last Change: 2012 Sep 17
-" Maintainer: Caio Romão <caioromao@gmail.com>
+" Last Change: 2012 Dec 29
+" Author: Caio Romão <caioromao@gmail.com>
" License: This file is placed in the public domain
" Contributors:
" Brian Henderson <https://github.com/bhenderson>
+" Mark Stillwell <https://github.com/marklee77>
"
" Setup:
" This plugin exports the completion function QueryCommandComplete,
@@ -43,6 +44,18
" Pattern used to match against the current line to decide
" whether to call the query command
" default: '^\(To\|Cc\|Bcc\|From\|Reply-To\):'
+"
+" g:qcc_multiline
+" Whether to try matching g:qcc_pattern against the current
+" and any previous line
+" default: 0
+"
+" g:qcc_multiline_pattern
+" Pattern to match against the current line when deciding
+" wether to keep looking for a line that matches g:qcc_pattern
+" This provides finer control over the recursion, which
+" is useful if calling the completion on really big files.
+" default: '.*'

if exists("g:loaded_QueryCommandComplete") || &cp
finish