Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Version 0.40a: Forgot to include autoload/tlib/balloon.vim (thanks Ma…

…ciej)
  • Loading branch information...
commit 12e5606825116bcc3496ac7eb30ce2a86907c04f 1 parent 45d8ea1
@tomtom tomtom authored committed
View
9 autoload/tlib/Filter_cnf.vim
@@ -3,8 +3,8 @@
" @Website: http://www.vim.org/account/profile.php?user_id=4037
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2008-11-25.
-" @Last Change: 2010-09-15.
-" @Revision: 0.0.69
+" @Last Change: 2010-10-10.
+" @Revision: 0.0.74
let s:prototype = tlib#Object#New({'_class': ['Filter_cnf'], 'name': 'cnf'}) "{{{2
let s:prototype.highlight = g:tlib_inputlist_higroup
@@ -13,6 +13,11 @@ let s:prototype.highlight = g:tlib_inputlist_higroup
" form: (P1 OR P2 ...) AND (P3 OR P4 ...) ...
" The pattern is a '/\V' very no-'/magic' regexp pattern.
"
+" Pressing <space> joins two patterns with AND.
+" Pressing | joins two patterns with OR.
+" I.e. In order to get "lala AND (foo OR bar)", you type
+" "lala foo|bar".
+"
" This is also the base class for other filters.
function! tlib#Filter_cnf#New(...) "{{{3
let object = s:prototype.New(a:0 >= 1 ? a:1 : {})
View
14 autoload/tlib/input.vim
@@ -4,8 +4,8 @@
" @Website: http://www.vim.org/account/profile.php?user_id=4037
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-06-30.
-" @Last Change: 2010-09-26.
-" @Revision: 0.0.807
+" @Last Change: 2010-10-10.
+" @Revision: 0.0.811
" :filedoc:
@@ -36,17 +36,17 @@
" m ... Return a list of selcted elements
" mi ... Return a list of indexes
"
-" Several pattern matching styles are supported. See:
-" - |tlib#Filter_cnf#New()|
-" - |tlib#Filter_cnfd#New()|
-" - |tlib#Filter_fuzzy#New()|
-" - |tlib#Filter_seq#New()|
+" Several pattern matching styles are supported. See
+" |g:tlib_inputlist_match|.
"
" EXAMPLES: >
" echo tlib#input#List('s', 'Select one item', [100,200,300])
" echo tlib#input#List('si', 'Select one item', [100,200,300])
" echo tlib#input#List('m', 'Select one or more item(s)', [100,200,300])
" echo tlib#input#List('mi', 'Select one or more item(s)', [100,200,300])
+"
+" See ../samples/tlib/input/tlib_input_list.vim (move the cursor over
+" the filename and press gf) for a more elaborated example.
function! tlib#input#List(type, ...) "{{{3
exec tlib#arg#Let([
\ ['query', ''],
View
27 doc/tlib.txt
@@ -377,9 +377,14 @@ g:tlib_inputlist_filename_indicators (default: 0)
*g:tlib_inputlist_match*
g:tlib_inputlist_match (default: 'cnf')
- Can be "cnf" or "fuzzy".
- cnf :: substrings
- fuzzy :: match characters
+ Can be "cnf", "cnfd", "seq", or "fuzzy". See:
+ cnf :: Match substrings
+ - |tlib#Filter_cnf#New()| (this is the default method)
+ - |tlib#Filter_cnfd#New()|
+ seq :: Match sequences of characters
+ - |tlib#Filter_seq#New()|
+ fuzzy :: Match fuzzy character sequences
+ - |tlib#Filter_fuzzy#New()|
*g:tlib_inputlist_shortmessage*
g:tlib_inputlist_shortmessage (default: 0)
@@ -1044,6 +1049,11 @@ tlib#Filter_cnf#New(...)
form: (P1 OR P2 ...) AND (P3 OR P4 ...) ...
The pattern is a '/\V' very no-'/magic' regexp pattern.
+ Pressing <space> joins two patterns with AND.
+ Pressing | joins two patterns with OR.
+ I.e. In order to get "lala AND (foo OR bar)", you type
+ "lala foo|bar".
+
This is also the base class for other filters.
@@ -1110,18 +1120,17 @@ tlib#input#List(type. ?query='', ?list=[], ?handlers=[], ?default="", ?timeout=0
m ... Return a list of selcted elements
mi ... Return a list of indexes
- Several pattern matching styles are supported. See:
- - |tlib#Filter_cnf#New()|
- - |tlib#Filter_cnfd#New()|
- - |tlib#Filter_fuzzy#New()|
- - |tlib#Filter_seq#New()|
+ Several pattern matching styles are supported. See
+ |g:tlib_inputlist_match|.
EXAMPLES: >
echo tlib#input#List('s', 'Select one item', [100,200,300])
echo tlib#input#List('si', 'Select one item', [100,200,300])
echo tlib#input#List('m', 'Select one or more item(s)', [100,200,300])
echo tlib#input#List('mi', 'Select one or more item(s)', [100,200,300])
-<
+
+< See ../samples/tlib/input/tlib_input_list.vim (move the cursor over
+ the filename and press gf) for a more elaborated example.
*tlib#input#ListD()*
tlib#input#ListD(dict)
View
15 plugin/02tlib.vim
@@ -3,8 +3,8 @@
" @Website: http://www.vim.org/account/profile.php?user_id=4037
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-04-10.
-" @Last Change: 2010-10-02.
-" @Revision: 646
+" @Last Change: 2010-10-10.
+" @Revision: 652
" GetLatestVimScripts: 1863 1 tlib.vim
if &cp || exists("loaded_tlib")
@@ -140,9 +140,14 @@ TLet g:tlib_inputlist_livesearch_threshold = 1000
" disk when doing this.
TLet g:tlib_inputlist_filename_indicators = 0
-" Can be "cnf" or "fuzzy".
-" cnf :: substrings
-" fuzzy :: match characters
+" Can be "cnf", "cnfd", "seq", or "fuzzy". See:
+" cnf :: Match substrings
+" - |tlib#Filter_cnf#New()| (this is the default method)
+" - |tlib#Filter_cnfd#New()|
+" seq :: Match sequences of characters
+" - |tlib#Filter_seq#New()|
+" fuzzy :: Match fuzzy character sequences
+" - |tlib#Filter_fuzzy#New()|
TLet g:tlib_inputlist_match = 'cnf'
" If non null, display only a short info about the filter.
Please sign in to comment.
Something went wrong with that request. Please try again.