[GFiles?] Show diff in preview window
This commit is contained in:
parent
5e3a3375c3
commit
61eb53199c
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,7 @@ function! fzf#vim#gitfiles(args, ...)
|
||||||
let wrapped = fzf#wrap({
|
let wrapped = fzf#wrap({
|
||||||
\ 'source': 'git -c color.status=always status --short',
|
\ 'source': 'git -c color.status=always status --short',
|
||||||
\ 'dir': root,
|
\ 'dir': root,
|
||||||
\ 'options': '--ansi --multi --nth 2..,.. --prompt "GitFiles?> "'
|
\ 'options': '--ansi --multi --nth 2..,.. --prompt "GitFiles?> " --preview ''(git diff --color=always {-1} | sed 1,4d; cat {-1}) | head -500'''
|
||||||
\})
|
\})
|
||||||
call s:remove_layout(wrapped)
|
call s:remove_layout(wrapped)
|
||||||
let wrapped.common_sink = remove(wrapped, 'sink*')
|
let wrapped.common_sink = remove(wrapped, 'sink*')
|
||||||
|
|
Loading…
Add table
Reference in a new issue