Closed farzadmf closed 3 years ago
When I use :Vista Finder FZF it doesn't focus on the floating window
When I use :Vista Finder FZF it doesn't focus on the floating window
I had the same problem with coc and use this workaround: https://github.com/ramonbakker/vimrc/commit/1c1bb51a9b38d68ba88c1953588dadc737fae077.
I'm not sure why everything is weird now. Even when I select something, what used to happen was that there was a quick blinking on that line, but now, the line is highlighted and as soon as I press a motion key, only then the line blinks.
I hope the owner of the repo could at least give some guidance of what could be causing all these issues
When I use :Vista Finder FZF it doesn't focus on the floating window
I had the same problem with coc and use this workaround: ramonbakker/vimrc@1c1bb51.
This program sometimes runs normally, sometimes it does report an error and freezes
I hope the owner of the repo could at least give some guidance of what could be causing all these issues
I hope I can, but I no longer use fzf.vim, so can't help more here. I'm using vim-clap now BTW.
This happened after a recent update, maybe it is the new toggle behaviour for the :Vista command from commit 7b42e09049
Just to confirm my intuition, I downgraded to the revision before that via vim plug and now it works again as before
Plug 'liuchengxu/vista.vim', { 'commit': '4387164845165634a06941b17c2b4f398cffd193' }
Please revise commit 7b42e09.
So, seems like vista#sidebar#IsOpen()
is not properly returning the correct value
cc @Mte90
You are right I see the issue.
So https://github.com/liuchengxu/vista.vim/blob/081ca51a8bb572283c0023568e63e35e5f3a2cb4/autoload/vista/sidebar.vim#L132 IsOpen use a native method.
If I run that command in vim I don't get anything:
I was thinking that use the native method of the plugin was better and more clear as a:0 == 0
wasn't detecting rightly if the sidebar is open to close it.
I am doing a pr that fix the issue (tested right now).
If someone else can test the patch https://github.com/liuchengxu/vista.vim/pull/391
Hey @Mte90 , I'm not sure if I'm missing something, but I applied the patch and now running :Vista
doesn't do anything for me.
Vista finder is fine (this is the command that I use: :call vista#finder#fzf#Run("coc")
)
On my tests with :Vista nvim_lsp
open and close the sidebar with no issue
Right, :Vista coc
(or :Vista ctags
) seem to be working fine for me. Maybe :Vista
alone isn't supposed to do anything; I'm not sure TBH
I updated the pr with some code before my patch.
To me just :Vista
never worked so I always used with parameters.
:Vista
is equivalent to :Vista YOUR_DEFAULT_EXECUTIVE
, see the default executive via :echo vista#GetExplicitExecutiveOrDefault()
. Please confirm whether the patch works for you @farzadmf.
@liuchengxu the updated PR code seems to be fine (running :Vista
alone displays vista window)
I think you now have the same problem but the other way around.
If the sidebar is open via :Vista
or :Vista!!
and you run :Vista finder
fzf doesn't open and the sidebar closes.
Describe the bug I'm running
:Vista finder fzf
and I havelet g:vista_close_on_fzf_select = 1
. If I open the finder and choose something using Enter, everything is good, but if I press Escape to close the window, thefzf
finder window is gone and the main vista window opens on the side, which is a bit annoying since I have to close that also.Environment:
7b42e090492d522a27a6f6121f91e65a585fbd60
ctags --version
command -->Vista info
Steps to reproduce given the above info
neovim
and run:Vista finder fzf
Expected behavior Since I'm escaping out of the window, I'm expecting only my main buffer to be open.
Actual behavior Vista's "main" window is opened to the side.
Screenshot or gif (if possible) I can provide if you think is necessary