Skip to content

Commit 7fa89fe

Browse files
committed
add g:ctrlp_custom_tag_files
close #282
1 parent 5a0f323 commit 7fa89fe

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

autoload/ctrlp/tag.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ fu! ctrlp#tag#id()
137137
endf
138138

139139
fu! ctrlp#tag#enter()
140-
let tfs = tagfiles()
141-
let s:tagfiles = tfs != [] ? filter(map(tfs, 'fnamemodify(v:val, ":p")'),
140+
let tfs = get(g:, 'ctrlp_custom_tag_files', tagfiles())
141+
let s:tagfiles = type(tfs) == 3 && tfs != [] ? filter(map(tfs, 'fnamemodify(v:val, ":p")'),
142142
\ 'filereadable(v:val)') : []
143143
endf
144144
"}}}

doc/ctrlp.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,9 @@ Special thanks:~
14981498
===============================================================================
14991499
CHANGELOG *ctrlp-changelog*
15001500

1501+
* New option |g:ctrlp_custom_tag_files| to specify custom tag files.
1502+
* Accept 0 for g:ctrlp_match_window no-limited window size.
1503+
15011504
Before 2016/11/28~
15021505

15031506
+ New command: |YankLine()| to yank current line.

0 commit comments

Comments
 (0)