alefragnani / vscode-bookmarks

Bookmarks Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks
GNU General Public License v3.0
1.65k stars 163 forks source link

[FEATURE] - Add "Jump to label" #613

Closed Straubm closed 1 year ago

Straubm commented 1 year ago

Currently jumps can be to the next or previous bookmark. The feature request asks for a jump to a label, in the best case cross-file, but restricted to the current file would help as well.

Btw, good work, thanks. Will donate.

alefragnani commented 1 year ago

Hi @Straubm ,

I suppose you mean Jump to Previous/Next Labeled Bookmark, which should ignore regular bookmarks, right? I don't use labeled bookmarks that much but it is a good idea.

About restricted to current file, this behavior already exists. Simply add the bookmarks.navigateThroughAllFiles setting to true and you are good to go.

Hope this helps

Straubm commented 1 year ago

Hi @alefragnani,

I meant 'Jump to Labeled Bookmark', not next/previous. Like bringing up a list of labeled bookmarks to choose from. The list could be all labeled bookmarks or only the current file`s labeled bookmarks, but this feature - the restriction - is dispensable.

alefragnani commented 1 year ago

Hi @Straubm ,

In this case, there is no need to create a new command. There are already two different commands to this:

The labeled bookmarks are displayed with an icon on its side, and you can filter them by the label.

Hope this help