-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Per Tab nvim-trees #457
Comments
currently there is only one buffer for the tree, i do not keep track of multiple tree instance under multiple paths, although it could be made easily i think |
Right now how I do it is to have multiple terminal tabs open. But this isn't really the way to go i guess. It works for now, but is kinda annoying on fullstack projects. :) |
I could work out something i guess, but this might lead to new issues that i might not want :) |
I would also like to request the ability to have a separate state for each tab. Having a different root or open / closed state in the tree for different tabs is something I use pretty often. Maybe a setting like |
Yeah, before I migrated to nvim-tree, I used defx and as one example, would often open multiple defx buffers to do things like copy and paste files to a different directory |
I have a few refactorings to do in order to implement this, because 1) the view buffer is loaded only once during startup (which was one of my worst design choice...) and 2) i have only 1 global variable for managing the explorer state. |
There are now multiple tree buffers, so each tab retains its own state. Please reopen if you have any further questions or bugs. |
@alex-courtis i believe it does not ? There is still only one tree state for all buffers |
NvimTreeRefresh does still cause unexpected behaviour across tabs, such as collapsing parts of the tree. Such behaviour is inconsistent. Reopening. |
Can I configure auto_sync_buffers cross all of the tabs? |
Not sure what you mean by that... is there something you could quickly put together to demonstrate? |
@alex-courtis, I have 2 opened Nvim tabs. After updating one tab I want to have the same situation in the second tab. sync_tabs.mov |
I see. Desired functionalities:
This is a non-trivial amount of effort. |
See #877 |
See #1847 for ideas on |
Also, I see this thread: #1847 (reply in thread) Just to add a voice, my personal use-case for multi tab is using tabs to manage collections of buffers in the same project / git repo. So I'd ideally see independent nvim-trees per-tab (because each tab represents a collections of files which may or may not live in the same local dir, but do all exist in the same cwd) but the tree would be using the same |
Hey, when I create a new tab in Nvim, with the :tabnew command, and open Nvim Tree in both tabs.
When I now open for example a frontend directory in one tab, and go into a backend directory in the other tab, it goes into the backend directory in both tabs.
Is this wanted or is this a bug, and is there a way to change this behavior?
The text was updated successfully, but these errors were encountered: