Gruntfuggly / activitusbar

A VSCode extension to save some real estate by recreating the activity bar buttons on the status bar
Other
116 stars 15 forks source link

Is it possible to add an icon on the Activitusbar that invokes the lowermost icon on the activity bar? #50

Closed septsea closed 3 years ago

septsea commented 3 years ago

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.

image

Gruntfuggly commented 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

septsea commented 3 years ago

@Gruntfuggly Thanks for your reply. I meant the menu (shown in the screenshot below). The code that you provided opens the VS Code settings. image Is it possible to invoke the menu?

Gruntfuggly commented 3 years ago

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?

septsea commented 3 years ago

@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.

Gruntfuggly commented 3 years ago

Which items did you want to add?

septsea commented 3 years ago

@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.

Gruntfuggly commented 3 years ago

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?

septsea commented 3 years ago

@Gruntfuggly Thanks for your replies. Yes, please feel free to close the issue now.