]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0502: runtime(netrw): bookmark handling can be improved v9.2.0502
authorJ. Paulo Seibt <jpseibt@gmail.com>
Tue, 19 May 2026 18:51:14 +0000 (18:51 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 19 May 2026 18:51:14 +0000 (18:51 +0000)
commit35b767a090cc7b918dcafc9feb1a78cf0938d6bc
treec6c9a3eabd659d1aba0596aa13eaf78c539b590d
parent07dc94023ca9e6cecb139d855814bda8a985d98c
patch 9.2.0502: runtime(netrw): bookmark handling can be improved

Problem:  To goto or delete 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 or mB
          without a count targets g:netrw_bookmarklist[-1].
Solution: If no count is given to gb or mB, list all bookmarks and
          prompt for a number using inputlist(), similar to tag jump
          with g].

closes: #20211

Signed-off-by: J. Paulo Seibt <jpseibt@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/pi_netrw.txt
runtime/pack/dist/opt/netrw/autoload/netrw.vim
runtime/pack/dist/opt/netrw/doc/netrw.txt
src/testdir/test_plugin_netrw.vim
src/version.c