Ignore filename and context of tags

Fix #76
This commit is contained in:
Kien N 2012-01-13 23:02:17 +07:00
parent 418a22859c
commit 420174fc53
3 changed files with 10 additions and 11 deletions

View File

@ -1324,11 +1324,11 @@ fu! s:walker(max, pos, dir)
endf
fu! s:matchfname(item, pat)
retu match(split(a:item, '[\/]\ze[^\/]\+$')[-1], a:pat)
retu match(split(a:item, s:lash)[-1], a:pat)
endf
fu! s:matchtab(item, pat)
retu match(split(a:item, '\t\+[^\t]\+$')[0], a:pat)
retu match(split(a:item, '\t\+')[0], a:pat)
endf
fu! s:maxf(len)

View File

@ -297,14 +297,14 @@ If non-zero, this will enable opening multiple files with <c-z> and <c-o>: >
<
For the number:
- If bigger than 1, itll be used as the maximum number of windows or tabs to
create when opening the files, the rest will be hidden buffers.
create when opening the files (the rest will be hidden buffers).
- If is 1, <c-o> will open all files, each in a new window or new tab.
- If no number is given, only the first file will be opened in a window,
either new window or reused, and the rest will be hidden buffers.
For the letter:
t - each in a tab
h - each in a horizontal split
v - each in a vertical split
For the letters:
t - each in a new tab
h - each in a new horizontal split
v - each in a new vertical split
Reuse the current window:
tr,
hr,
@ -322,8 +322,8 @@ Pressing <c-o> or <c-y> will then prompt for a keypress. The key can be:
v - open in vertical split(s)
r - open in current window (for <c-y> only)
<esc>, <c-c> - cancel and go back to |CtrlP|
Any other key - use the default behavior specified by |g:ctrlp_open_new_file|
and |g:ctrlp_open_multi|.
Any other key - use the behavior specified with |g:ctrlp_open_new_file| and
|g:ctrlp_open_multi|.
*'g:ctrlp_dont_split'*
When opening a file with <cr>, |CtrlP| avoids opening it in windows created by

View File

@ -48,7 +48,6 @@ e.g. `abc:45` will open the file matched the pattern and jump to line 45.
.bzr/
_darcs/
root.dir
.vimprojects
* If you want to exclude directories or files from the search, you can use the Vims option `wildignore`
and/or the option `g:ctrlp_custom_ignore`.