mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-15 07:36:53 +08:00
[GFiles?] include all untracked files (#222)
By default git-status won't include new files in new directories.
E.g.
foo/bar/baz.txt # "baz.txt" is a new file in a new directory "bar".
$ git status --short
?? foo/bar/
This commit is contained in:
committed by
Junegunn Choi
parent
e198586037
commit
47d4655bd8
@@ -420,7 +420,7 @@ function! fzf#vim#gitfiles(args, ...)
|
||||
" We're trying to access the common sink function that fzf#wrap injects to
|
||||
" the options dictionary.
|
||||
let wrapped = fzf#wrap({
|
||||
\ 'source': 'git -c color.status=always status --short',
|
||||
\ 'source': 'git -c color.status=always status --short --untracked-files=all',
|
||||
\ 'dir': root,
|
||||
\ 'options': '--ansi --multi --nth 2..,.. --prompt "GitFiles?> " --preview ''(git diff --color=always -- {-1} | sed 1,4d; cat {-1}) | head -500'''
|
||||
\})
|
||||
|
||||
Reference in New Issue
Block a user