alefragnani / vscode-bookmarks

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

[FEATURE] - Setting that "expands" context menu options #502

Open abceleung opened 2 years ago

abceleung commented 2 years ago

It would be nice to have an setting that, when toggled, put all 4 context menu options of Bookmarks onto the context menu.

Currently it is in a "compressed" state.

(Of course user have to enable bookmarks.showCommandsInContextMenu first)

alefragnani commented 2 years ago

Hi @abceleung ,

Well, it's been about one year since the opposite request was made 😆 .

I'm pretty sure I can't simply add a toggle on that (it won't work out of the box), but I'll take a look

abceleung commented 2 years ago

I have no knowledge of VSCode extension(s), but I guess a setting like this will require a window reload, and I am fine with that.

And thank you for your effort!

alefragnani commented 2 years ago

Probably not, but will require duplicating menu entries. One for the collapsed and other for the non-collapsed states.

alefragnani commented 2 years ago

Menu entries uses a declarative approach, at build time, so you must declare all entries upfront. Then you can enable/disable them at runtime.

adiabatic commented 1 year ago

I'd be happy with an Expand All button that's right next to the Collapse All button.

alefragnani commented 1 year ago

Hi @adiabatic,

This is being tracked in #267. Feel free to upvote there.

Hope this helps