From 47d4655bd884975fec0b57c572e04a20bdf73a61 Mon Sep 17 00:00:00 2001 From: Odin Dutton Date: Mon, 17 Oct 2016 00:24:38 +1100 Subject: [PATCH] [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/ --- autoload/fzf/vim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 3966fbe..b2aeb47 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -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''' \})