Open rv-ragul opened 1 year ago
The sidebar has window stealing prevention. If another buffer tries to steal its window, it will try to move that buffer to another window and restore neo-tree.
This is meant as a helpful thing for when you accidentally open a file in neo-tree's window. It was never tested for terminals because that is an unusual thing to open accidentally. The usual culprits are files opened from a fuzzy finder.
The immediate answer is that you should switch to another window before opening a terminal. This should be obvious, you should not be opening anything in neo-tree's window. Just because you get away with it sometimes does not make it correct.
There's also something about the focus stealing prevention that doesn't work with terminals that should be fixed. I gotta say this is not a high priority for me but maybe someone else is interested in working on this.
Did you check docs and existing issues?
Neovim Version (nvim -v)
v0.10.0-dev-985+gae7ab9015
Operating System / Version
Debian GNU/Linux
Describe the Bug
I can't able to open terminal using
:terminal
command from a Neo-tree window. When I run:terminal
command, neovim gives the errorCan only call this function in an unmodified buffer
. But I can open a terminal using:e term://bash
. How to rectify this?Screenshots, Traceback
neotree_terminal_bug.webm
Steps to Reproduce
:terminal
Expected Behavior
Terminal should be opened using
:terminal
.Your Configuration