Open l4u opened 9 years ago
Menu Item: Trim Leading/Trailing Spaces Command: text-manipulation:whitespace-trim
I can type whitespacetrim
in the command palette to search for that command.
But it would be great if we can also search a command by the label of the command at menu items. (for example: trimspaces
for this case)
@l4u I updated the title to better reflect what it seems like you're requesting - does it look alright to you?
Yeah it looks great.
I want to search commands by human readable labels, in additional to the command itself. In my example the human readable label is Trim Leading/Trailing Spaces
but the command is text-manipulation:whitespace-trim
. Currently, I can find the command by text-manipulation:whitespace-trim
, but not Trim Leading/Trailing Spaces
.
@l4u Ah I see what you mean – so you'd want the commands to have completely different (ie. more descriptive) human readable labels, instead of just "humanizing" the command names?
Right. Currently we have human readable labels for menu items. But they are not searchable.
So we can add human readable labels to the commands, or we can make menu items searchable.
I would also like to see this feature, since the current method doesn't work great for abbreviations or non-alphanumeric characters like a simple dash (-
). There are workarounds for both cases, but I'd rather have a clean labelling option like in the menus.
For backwards compatibility, I'd fallback to the command name if no label has been specified.
@l4u Not sure I understand you're suggestion here -- can you provide an example and use that to clarify? Thanks!