Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API Feature Request] Manifest - set default alias and hotkey for commands #348

Open
selfish opened this issue Nov 12, 2021 · 2 comments
Open
Labels
api Issues related to API feature request New feature or improvement

Comments

@selfish
Copy link
Contributor

selfish commented Nov 12, 2021

In Alfred, each workflow "claims" its alias.
It would be nice to have an option for "claiming" an alias by default in the manifest, for example by adding an "alias" key on Command API.
This can appear as a suggestion, or be applied automatically unless it's already taken.

The same should be applied to hotkeys, allowing extensions to recommend the default hotkey for a command, and allow the user to remove that / set alternative if there's a collision.

Describe the feature and the current behavior/state.

n/a - doesn't exist

Will this change the current API? How?

No change.

Who will benefit from this feature?

In general, the user community will benefit from better standardization.
For example, more "how do I do X?" queries can be answered with "the default hotkey is this and that!"

@selfish selfish added api Issues related to API feature request New feature or improvement labels Nov 12, 2021
@selfish selfish changed the title [API Feature Request] [API Feature Request] Manifest - set default allias and hotkey for commands Nov 12, 2021
@selfish selfish changed the title [API Feature Request] Manifest - set default allias and hotkey for commands [API Feature Request] Manifest - set default alias and hotkey for commands Nov 20, 2021
@peduarte
Copy link
Contributor

peduarte commented Jan 5, 2023

Thanks for your suggestion! The first thing that comes to mind here, is what if the pre-defined alias/hotkeys is already in use?

@selfish
Copy link
Contributor Author

selfish commented Jan 9, 2023

Hey, thanks for your response!
I think it's natural to have collisions here.
Similarly in Alfred, each extension can declare the default binding, but it will only be set if it's available.

I think this should be optional or even should ask the user if the recommended hotkeys should be set, replaced, etc.

I would also mention that in Raycast it's SO easy and fun to customize and control hotkeys, that this really shouldn't be much of a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues related to API feature request New feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants