[Commands] Match against the description as well

This commit is contained in:
Junegunn Choi
2015-09-20 01:38:03 +09:00
parent da6e7e84b4
commit 2d8435f114

View File

@@ -525,7 +525,7 @@ function! fzf#vim#commands(...)
call s:fzf({ call s:fzf({
\ 'source': extend(extend(list[0:0], map(list[1:], 's:format_cmd(v:val)')), s:excmds()), \ 'source': extend(extend(list[0:0], map(list[1:], 's:format_cmd(v:val)')), s:excmds()),
\ 'sink': function('s:command_sink'), \ 'sink': function('s:command_sink'),
\ 'options': '--ansi --tiebreak=index --header-lines 1 -x --prompt "Commands> " -n2 -d'.s:nbs}, a:000) \ 'options': '--ansi --tiebreak=index --header-lines 1 -x --prompt "Commands> " -n2,3,2..3 -d'.s:nbs}, a:000)
endfunction endfunction
" ------------------------------------------------------------------ " ------------------------------------------------------------------