mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-10-04 19:28:53 +08:00
Add GitFiles command
This commit is contained in:
1 parent
0e995e1913
commit
1a2d597045
4 files changed
+15
No files matched your search
@@ -323,6 +323,18 @@ function! fzf#vim#history(...)
|
||||
\}, a:000)
|
||||
endfunction
|
||||
|
||||
" ------------------------------------------------------------------
|
||||
" GitFiles
|
||||
" ------------------------------------------------------------------
|
||||
|
||||
function! fzf#vim#gitfiles(...)
|
||||
call s:fzf({
|
||||
\ 'source': 'git ls-tree --name-only -r HEAD',
|
||||
\ 'sink*': s:function('s:common_sink'),
|
||||
\ 'options': '--prompt "GitFiles> " -m'.s:expect(),
|
||||
\}, a:000)
|
||||
endfunction
|
||||
|
||||
" ------------------------------------------------------------------
|
||||
" Buffers
|
||||
" ------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user