Closed septsea closed 3 years ago
You can add buttons for arbitrary commands: https://github.com/Gruntfuggly/activitusbar#command-buttons
Or if you want to open the settings, just use
{
"name": "settings",
"codicon": "gear"
}
See https://github.com/Gruntfuggly/activitusbar#settings-button
@Gruntfuggly Thanks for your reply. I meant the menu (shown in the screenshot below). The code that you provided opens the VS Code settings. Is it possible to invoke the menu?
No sorry, there's no API open to extensions for that sort of thing.
It might be possible to create a custom menu with similar commands (not all would be available), but it would open at the top of the screen, so you might as well use the normal menus.
It might be easier to add buttons for the menu options you want the most?
@Gruntfuggly I see. In that case, I could just give that up. I tried to find something useful in "Default Keyboard Shortcuts (JSON)", but failed. Thanks.
Which items did you want to add?
@Gruntfuggly I wanted all, to be honest. I wished I could open the menu so that I could completely abandoned the activity bar. Now that an extension cannot access the menu, I think I will instead memorize some keyboard shortcuts to items that I usually use. My original idea was to find a keyboard shortcut to the menu. Hence I also opened an issue here: https://github.com/microsoft/vscode/issues/134852 I don't really click the icons on the Activitusbar because using a mouse causes hand pain; I just want to get rid of the activity bar.
Yes, sounds like shortcuts might be your best option. The only other thing you could do is add a button activitusbar to open the activity bar (and close it again). You'd still need two clicks though.
Are you OK if I close this now?
@Gruntfuggly Thanks for your replies. Yes, please feel free to close the issue now.
Hi! Your extension is so nice.
I wonder whether or not it is possible to add an icon on the Activitusbar that invokes the lowermost icon on the activity bar.