In newTabMenu allow assignment/override of the icon property for the action items #22450

Open
opened 2026-01-31 08:13:31 +00:00 by claunia · 0 comments
Owner

Originally created by @AbraxasDMG on GitHub (Oct 23, 2024).

Description of the new feature

Hi.

One small cosmetic suggestion.

Currently, I can define actions->command which I can then select as the action in newTabMenu.
If I would like to have an icon (or glyph) for that item displayed in the newTabMenu, icon needs to be defined at the level of actions->command. That will result in icon being visible in the command palette as well, which I'd like to avoid (I don't like it visually to have only one or a few items with the icon in a long list of commands).

Would it be possible to have a possibility to define "icon" for newTabMenu action items ("type": "action"). That would allow assignment of desired icons/glyphs to desired commands only in newTabMenu and not in command palette.

Other option would be to have a property on the actions->command item level that would allow for the icon not to be displayed in the command palette (e.g. iconVisibility to have one of the following values: "newtabmenu", "commandpalette", "both", "none").

One more thing that could work is to allow the whole custom command to be excluded from the command palette.

Thank you in advance!

Proposed technical implementation details

No response

Originally created by @AbraxasDMG on GitHub (Oct 23, 2024). ### Description of the new feature Hi. One small cosmetic suggestion. Currently, I can define actions->command which I can then select as the action in newTabMenu. If I would like to have an icon (or glyph) for that item displayed in the newTabMenu, icon needs to be defined at the level of actions->command. That will result in icon being visible in the command palette as well, which I'd like to avoid (I don't like it visually to have only one or a few items with the icon in a long list of commands). Would it be possible to have a possibility to define "icon" for newTabMenu action items ("type": "action"). That would allow assignment of desired icons/glyphs to desired commands only in newTabMenu and not in command palette. Other option would be to have a property on the actions->command item level that would allow for the icon not to be displayed in the command palette (e.g. iconVisibility to have one of the following values: "newtabmenu", "commandpalette", "both", "none"). One more thing that could work is to allow the whole custom command to be excluded from the command palette. Thank you in advance! ### Proposed technical implementation details _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22450