Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up context menus #225411

Open
daviddossett opened this issue Aug 12, 2024 · 3 comments
Open

Clean up context menus #225411

daviddossett opened this issue Aug 12, 2024 · 3 comments
Assignees
Labels
menus Menu items and widget issues under-discussion Issue is under discussion for relevance, priority, approach
Milestone

Comments

@daviddossett
Copy link
Contributor

daviddossett commented Aug 12, 2024

Context menus, especially in editors and notebooks, have grown substantially in size and variety as VS Code has evolved. There are inconsistencies to address (e.g. Share is in a different place in different menus) and organizational improvements that could be made.

Here's a rough sketch that looks at:

  • Folding large sections like Go to into their own submenu
  • Moving Copy / Share / Copilot groups to the bottom so they are consistent across different menus

Image

@daviddossett daviddossett added this to the August 2024 milestone Aug 12, 2024
@daviddossett daviddossett self-assigned this Aug 12, 2024
@emsaks
Copy link

emsaks commented Aug 16, 2024

Maybe merge the Goto and Peek options - have a clickable 'peek' icon on the Goto entry to peek instead of opening new window.

Also, the copy/paste/cut can be shrunk into one row of icons like in the Windows 11 Explorer context menu.

@generikvault
Copy link

generikvault commented Sep 18, 2024

Wouldn't it be nice if we could just pin and unpin commands from the command pallet to the context menu? Probalby similar to the keyboard shutcuts. Some extensions fill the context menu with entries that I basicly never use.

There is already a feature request for custom menus: #9285

@alfuken
Copy link

alfuken commented Oct 8, 2024

@generikvault is right. What you're suggesting @daviddossett is only cleaning up the mess of the items added by the vanilla VSCode, but the real problem is waaay beyond that. A more generic solution is long overdue.

How about an ability for the user to create context menu "folders" at will, and then pin/unpin commands to either those folders or to context menu root directly? For starters via JSON config directly (I'd assume it'd be a plain tree, where if key is one of the existing commands - then it's a command, and if not - it's a folder. And if it's a dash -, it's a separator. As simple as that.). And later, maybe, allow editing this via a multistep command, or even a drag-n-drop GUI in a config editor.

WDYT?

@connor4312 connor4312 added under-discussion Issue is under discussion for relevance, priority, approach menus Menu items and widget issues labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
menus Menu items and widget issues under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

6 participants