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

NERDTree is affecting the jumplist #1349

Closed
ajwrigley opened this issue Feb 6, 2023 · 1 comment
Closed

NERDTree is affecting the jumplist #1349

ajwrigley opened this issue Feb 6, 2023 · 1 comment

Comments

@ajwrigley
Copy link

ajwrigley commented Feb 6, 2023

When editing a file I frequently use CTRL-o and CTRL-i to navigate through previous cursor positions. But NERDTree is adding entries to the jumplist so CTRL-o does weird things like opening another instance of NERDTree in the main buffer.

Is there a workaround for this, to prevent any NERDTree entries from going into the jumplist?

@rzvxa
Copy link
Member

rzvxa commented May 15, 2024

@ajwrigley I've been trying to fix this for a while, Sadly there is no real way of getting rid of it. You can mark the buffer as hidden to prevent it from coming up in the jumplist but it does break other functionalities.
Even Vim's built-in file explorer netrw has this gimmick, I'm going to mark it as not planned since even if it is possible to fix it needs a huge time investment and doesn't really provide enough value to anyone's workflow.

Don't let my reasoning discourage you from fixing it and creating a PR addressing this issue, I would welcome such change and I'll even help you in the process if you get stuck anywhere.

@rzvxa rzvxa closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants