atom / command-palette

Command Palette in Atom
MIT License
116 stars 56 forks source link

Show and search command names (in addition to human-readable commands) in command palette #36

Open l4u opened 9 years ago

izuzak commented 9 years ago

@l4u Not sure I understand you're suggestion here -- can you provide an example and use that to clarify? Thanks!

l4u commented 9 years ago

Example: https://github.com/extesy/atom-text-manipulation/blob/f76597695586cffa07dc3ec6adeb767f4c86b0bc/menus/text-manipulation.cson#L31

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)

mnquintana commented 9 years ago

@l4u I updated the title to better reflect what it seems like you're requesting - does it look alright to you?

l4u commented 9 years ago

Yeah it looks great.

l4u commented 9 years ago

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.

mnquintana commented 9 years ago

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

l4u commented 9 years ago

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.

idleberg commented 8 years ago

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.