Skip to content

[Bug] Cannot :tabnew from neo-tree buffer #89

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

Closed
levouh opened this issue Jan 23, 2022 · 4 comments
Closed

[Bug] Cannot :tabnew from neo-tree buffer #89

levouh opened this issue Jan 23, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@levouh
Copy link
Contributor

levouh commented Jan 23, 2022

Using a minimal configuration such as:

vim.cmd("packadd plenary.nvim")
vim.cmd("packadd neo-tree.nvim")

require("neo-tree").setup({})

located in something like /tmp/neo-tree.lua, perform the following:

  1. nvim --noplugin -u /tmp/neo-tree.lua
  2. Open a file somewhere in the current working directory
  3. :NeoTreeFocus
  4. :tabnew

Observe that no tab is actually opened, and the neo-tree buffer is now closed.


Is this reproducible for others?

@cseickel
Copy link
Contributor

Confirmed.

@cseickel cseickel added the bug Something isn't working label Jan 23, 2022
@levouh
Copy link
Contributor Author

levouh commented Jan 23, 2022

Doing :9verbose tabnew shows what all is being triggered, although I'm sure you might already have some ideas.

@cseickel
Copy link
Contributor

Yeah, it is a problem with the logic that prevents other buffers from stealing neo-tree's window. I just need to figure out the right logic for new tabs.

@cseickel
Copy link
Contributor

This also pointed me to a much more serious bug when opening a file with neo-tree as the only window, it created a never ending loop of new splits. I'm going to push this fix right out to v1.x very soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants