Skip to content

Keep tree open in all tabs #1880

Closed
Closed
@maxnoe

Description

@maxnoe

Can this functionality be implemented utilising API?

Maybe, but I didn't find a way to detect if the tree is already open in another tab, so my idea of having a an autocmd on TabEnter did not work out.

Is your feature request related to a problem? Please describe.

I am basically looking for the same functionality as provided by https://github.com/jistr/vim-nerdtree-tabs for nerdtree.

Open the file tree ones, have it open in all tabs. When closing, have it close in all tabs. When having a tree open in one tab, creating a new tab or entering an existing tab without the tree open currently, there is no tree in the new tab. The other way around as well: closing the tree in one tab and then switching to one where it was open will still have it open.

Describe the solution you'd like

Be able to have the tree open/close/toggle for all tabs, including new tabs. Not sure what the best way of implementing is. Could be done minimally with new api reporting the current state or a top-level option for this behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions