Closed farzadmf closed 3 years ago
let g:vista_close_on_jump = 1
is to close the vista window when you jump to a symbol in the source file from the vista window, not for closing it when you select an item from the fzf window.
Thank you @liuchengxu for your answer, so there's no way to close automatically then?
No such option now, but you can try this:
diff --git a/autoload/vista/finder/fzf.vim b/autoload/vista/finder/fzf.vim
index 63a514e..5ea0cd4 100644
--- a/autoload/vista/finder/fzf.vim
+++ b/autoload/vista/finder/fzf.vim
@@ -94,6 +94,7 @@ function! vista#finder#fzf#sink(line, ...) abort
call cursor(lnum, col)
normal! zz
call call('vista#util#Blink', get(g:, 'vista_blink', [2, 100]))
+ call vista#sidebar#Close()
endfunction
" Actually call fzf#run() with a highlighter given the opts
That's great, I'm gonna give it a try, thank you :slightly_smiling_face:
Hey @liuchengxu , it works with the patch you provided. Does it hurt to add that line in the main code? I guess it should be fine since the FZF window is automatically closed when we select something, so it's somehow expected for the main window to close as well
You can use let g:vista_close_on_fzf_select = 1
now.
Wow, amazing, thank you @liuchengxu
Describe the bug Vista window doesn't close after doing
fzf
search despite having set the optionlet g:vista_close_on_jump = 1
Environment:
Vista info
Steps to reproduce given the above info As mentioned in the help, I've setup my
/
key to do anfzf
search::Vista
to open the window/
to do a searchENTER
Expected behavior I expect that when I search using
/
and select to "jump" to that tag, the vista Window to be closed, but it stays openActual behavior After doing the search and "jumping", vista is still open