raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.3k stars 2.98k forks source link

Dynamically defined commands #939

Open FezVrasta opened 2 years ago

FezVrasta commented 2 years ago

Describe the feature and the current behavior/state.

There are cases where it would be useful to allow the users to create new commands dynamically. For example, an extension may want to allow the users to define commands to quickly perform certain actions without opening the main extension command and doing that manually.

In my case I have the Set Output Device extension that has a static Set Audio Output Device to Favourite One command, but I would rather let the users create a command from any of their available output devices rather than limiting to just one.

Will this change the current API? How?

Yes, it should provide a programmatic way to register commands.

Who will benefit from this feature?

Anyone wanting to expose convenient ways to use theirs extensions.

Any Other info.

jul-sh commented 6 months ago

are there plans to implement this?

Gitsack commented 1 week ago

This would be amazing for multiple use cases and an instant boost to productivity, since you would be able to add custom shortcuts for your own needs more granually, like Quicklinks or Window Management where you can add options dynamically into a "Group":

CleanShot 2024-09-28 at 16 15 28@2x

Was currently looking for an option to implement this, but I guess the status of this ticket means that we're out of luck right now? :)


I guess the next best option currently is to have a list view with all available options to trigger the respective action, right?