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

Jump to bookmark list #1304

Closed
ds2606 opened this issue Apr 8, 2022 · 1 comment · Fixed by #1394
Closed

Jump to bookmark list #1304

ds2606 opened this issue Apr 8, 2022 · 1 comment · Fixed by #1394
Labels
feature request PR Under Review Coding is finished, and a pull request has been created and is being reviewed.

Comments

@ds2606
Copy link
Contributor

ds2606 commented Apr 8, 2022

Description

When I open NERDTree, I'm usually dropped somewhere in the middle of a directory listing. I'd like to quickly navigate to my bookmarks to select a bookmarked directory.

There are bindings like ? for help, p for the parent, why not have a binding b to jump to the bookmark list?

Right now, I have to manually scroll up to get there every time. b is currently unused, and seems like a natural fit.

@ds2606
Copy link
Contributor Author

ds2606 commented Apr 8, 2022

Documenting my progress in this comment:

  • It seems that there's a workaround with the keystring BB (closes/opens bookmarks, redrawing the cursor there) but seems like this would be better as built-in functionality.
  • I'm learning how to use the NERDTreeKeyMapAPI based on information in this blog post.
  • I've found the built-in function NERDTree.CursorToBookmarkTable() in nerdtree.vim, but currently can't find a way to expose it to the external script.
  • This didn't seem doable with an external script and the mapping API, so I built in the change and submitted a PR (fix typo #1306 )

Addressed in #1306

@rzvxa rzvxa added the PR Under Review Coding is finished, and a pull request has been created and is being reviewed. label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request PR Under Review Coding is finished, and a pull request has been created and is being reviewed.
Projects
None yet
2 participants