Skip to content
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

tabnew should focus existing tab if file already opened #1687

Closed
thanhtran-ct opened this issue Oct 26, 2022 · 1 comment
Closed

tabnew should focus existing tab if file already opened #1687

thanhtran-ct opened this issue Oct 26, 2022 · 1 comment
Labels
feature request PR please nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated QOL Quality Of Life Improvement

Comments

@thanhtran-ct
Copy link

Currently, every time I execute tabnew on a file node, nvim will open a new tab regardless that file is already opened in another tab. I think it's likely a mistake that user open a file which is already opened and NVimTree should gracefully switch to the tab opening that file.

To avoid disruptive behavior, I think it can be done like NERDTree in which an additional option like 'reuse': 'all' can be supplemented to the mappings config.

With this additional option, users not only apply for tabnew but can choose to apply for open action as well.

@gegoune gegoune added the PR please nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated label Oct 26, 2022
@alex-courtis alex-courtis added the QOL Quality Of Life Improvement label Dec 3, 2022
@alex-courtis
Copy link
Member

alex-courtis commented Jun 18, 2023

See #2255

Let's track that there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request PR please nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated QOL Quality Of Life Improvement
Projects
None yet
Development

No branches or pull requests

3 participants