[vim/vim] runtime(netrw): add tag-jump-like prompt for goto bookmark (gb) (PR #20211)

4 views
Skip to first unread message

J. Paulo Seibt

unread,
May 13, 2026, 10:36:33 AM (2 days ago) May 13
to vim/vim, Subscribed

Problem:

  • To goto a bookmark one needs to prefix a count for the bookmark number (e.g., 2gb to open bookmark#2). As the bookmark list gets or deletes entries, the numbers keep changing, requiring listing the bookmarks with qb to discover the desired bookmark number. Typing gb without a count opens g:netrw_bookmarklist[-1].

Solution:

  • If no count is given to gb, list all bookmarks and prompt for a number using inputlist(), similar to tag jump with g].

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20211

Commit Summary

  • c8dce9f runtime(netrw): add tag-jump-like prompt for goto bookmark (gb)

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20211@github.com>

J. Paulo Seibt

unread,
May 13, 2026, 11:12:41 AM (2 days ago) May 13
to vim/vim, Subscribed
jpseibt left a comment (vim/vim#20211)

@chrisbra I was considering implementing the same inputlist() logic for the bookmark deletion mapping, mB (s:NetrwBookHistHandler a:chg == 6). Currently, typing mB without a count just deletes g:netrw_bookmarklist[-1].
I'm not a fan of the mapping deleting without a count prefix, because someone can delete the last bookmark entry by accident if they mistype the command for creating a bookmark (mb). However, maybe some users like to keep pressing mB to pop-out the last entry in the list.

I found this new behavior with inputlist() pretty nice. Do you think it would fit well for the deletion mapping too? If so, I could add it to this PR.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20211/c4442344650@github.com>

J. Paulo Seibt

unread,
May 14, 2026, 1:51:01 PM (23 hours ago) May 14
to vim/vim, Push

@jpseibt pushed 1 commit.

  • 6fb9a0c draft: runtime(netrw): add tag-jump-like prompt to delete bookmark (mB)


View it on GitHub or unsubscribe.


Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20211/before/c8dce9f38db8457d0210d0330f55c5b3863d90bd/after/6fb9a0c0c237405cb6c95c3e6b6a7442bb6bcd59@github.com>

Reply all
Reply to author
Forward
0 new messages