Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion autoload/ctrlp/tag.vim
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,18 @@ fu! ctrlp#tag#id()
endf

fu! ctrlp#tag#enter()
let tfs = tagfiles()


let s:tagfiles = tfs != [] ? filter(map(tfs, 'fnamemodify(v:val, ":p")'),
\ 'filereadable(v:val)') : []
endf

fu! ctrlp#tag#enter()
if exists('g:ctrlp_tag_custom_files')
let tfs = g:ctrlp_tag_custom_files
else
let tfs = tagfiles()
endif
let s:tagfiles = tfs != [] ? filter(map(tfs, 'fnamemodify(v:val, ":p")'),
\ 'filereadable(v:val)') : []
endf
Expand Down
17 changes: 16 additions & 1 deletion doc/ctrlp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ Overview:~
|g:ctrlp_buftag_systemenc|....The encoding used for the ctags command.
|g:ctrlp_buftag_types|........Add new filetypes and set the cmd arguments.

Tag mode:
|g:ctrlp_tag_custom_files|....Specified custom tag files

Advanced options:
|ctrlp_open_func|.............Use custom file opening functions.
|ctrlp_status_func|...........Change CtrlP's two statuslines.
Expand Down Expand Up @@ -1351,7 +1354,19 @@ Examples: >
\ 'args': '-f -',
\ },
\ }
<


----------------------------------------
Tag mode options:~

*'g:ctrlp_tag_custom_files'*
Use this to set different tags files than standard tags variable. If it is set
the tag searching consider only those specified files instead of global tags
variable.

Examples: >
let g:ctrlp_tag_custom_files = [".tags", "~/.vim/global_tags"]


===============================================================================
CUSTOMIZATION *ctrlp-customization*
Expand Down