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 161 forks source link

[FEATURE] - Display label text on icon click in the gutter #688

Open nolimitdev opened 5 months ago

nolimitdev commented 5 months ago

Since similar feature requests were closed because of missing VSCode API with hover over the icon in the gutter (with the line numbers) Im adding new feature request but with "click" not "hover" because as mentioned here https://github.com/alefragnani/vscode-bookmarks/issues/661#issuecomment-1802228894 mouse click API was added.

alefragnani commented 2 months ago

Hi @nolimitdev ,

The mouse click that it referes to corresponds to the right click, in order to display the context menu. It is not the regular mouse click, unfortunately.

I was reevaluating the open issues about displaying labeled bookmarks, playing a bit with the current APIs and noticed that besides #602, a hover (like https://code.visualstudio.com/api/language-extensions/programmatic-language-features#show-hovers) could be added the bookmarked lines. But in order to avoid mixing bookmark labels with already existing source code hovers, maybe the bookmark hover could be fired in specific regions of the line, like closer to the gutter (first N chars). So, when hovering the mouse on that location, the bookmark label could be displayed.

Other than this, and #602, I see no reasonable way to display the bookmark label inside the source.

Hope this helps