-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG?] When closing one of two opened files coc explorer is the only buffer visible #525
Comments
How did you open the two files? I tried to open two files with E but can't reproduce your issue |
I have opened them from the explorer by hitting enter. |
I am currently experimenting. I removed all vim plug installed plugins and all config exept for a minimal one. Then I still have that behaviour. Next thing would be to get rid of all the coc installed plugins as well. I will report on my findings |
Hm. Ok that happens to me even when I run everything with a minimal configuration. I only have coc installed and a color scheme. Then in coc I have everything default config and only coc-explorer installed. |
Here the behaviour shown with images.
|
I think I got your mean, but explorer does not consider overriding the default behavior of vim / neovim. |
OK thanks for the explanation. That makes sense. So I try to follow your advice for now and check if I can figure out a way to implement this into my vim configuration. I can imagine that others might also be interested in this. I can share my solution here in case I can come up with something. |
Part of the solution is
It first goes back to the last buffer and then deletes the previos buffer. However one need to bake this into some conditional logic as it might not be desired behaviour in all buffers. E.g. when you like I do have mapped out the |
I was experimenting with autocommands on this. Without much success so far to change the mapping when entering coc explorer e.g. |
I somehow gave up on it. However I also discovered this plugin here which brings exactly that behavior |
I have recently started using |
Describe the bug
When opening vim in a project, open the explorer. Then open one file. Then go to the explorer and open another file. When closing the first file with
:bd!
the explorer is the only buffer that shows. However I would expect the first open file to appear next to the explorer instead.Result from CocInfo
Steps to reproduce
Steps to reproduce the behavior:
nvim
:CocExplorer
Expected behavior
I would expect to get back to the first file appearing next to the explorer instead to the explorer only after closing the second opened file.
Screenshots
no screenshots
Additional context
I am using the explorer version
0.24.1
. In:The text was updated successfully, but these errors were encountered: