tpope / vim-fugitive

fugitive.vim: A Git wrapper so awesome, it should be illegal
https://www.vim.org/scripts/script.php?script_id=2975
19.82k stars 1k forks source link

Do not open quickfix on `:G difftool` #2285

Open name-snrl opened 5 months ago

name-snrl commented 5 months ago

I have the cmdline abbreviation Gdt = G difftool --name-only.

I use it in log. First, I yank the first commit. Then when I go to the second one, between which I want to get diff, I press . to start cmdline with it. Finally, I type Gdt <C-r>+ and press <Enter>. Thus I'm beginning to explore the diffs with fugitive.But I don't want the quickfix window to open, because I use nvim-telescope for that.

Of course, I can create my own command that will also close the quickfix window right after G difftool, or add | ccl to the end of the command each time. But perhaps we could add an additional flag for that?