Open nathonius opened 1 year ago
Bump!
Can you comment a bit on how you would want this to work? Like a way to add a custom command + url combo to fire the url when the entry item is pressed?
Can you comment a bit on how you would want this to work? Like a way to add a custom command + url combo to fire the url when the entry item is pressed?
Exactly, yeah. Either a way to define an arbitrary URI as an option in raycast or or provide the ID of a command which the raycast plugin could format into the URI.
This all assumes I have a correct understanding of the advanced URI plugin. My understanding is that it allows you to call pretty much any command via URI.
That sounds reasonable. Raycast won't be able to allow a dynamic user entered command, but I could create a generic command just for running custom commands. I'll have to investigate it some more though. I'll follow up.
Raycast won't be able to allow a dynamic user entered command
I feel like this should be possible through settings or config file. I might take a crack at it.
As far as I know, it grabs those from the package.json file, which runs through a validator before deploying to the store. So they need to be there beforehand. Could be some way though, I suppose.
If I remember correctly I was once talking with someone from Raycast about this and it was discouraged to have users create own commands. That is one reason why I for example used the Actions menu in the "Create Note" command to let users generate their own "Folder Actions".
So, imo, like @KevinBatdorf suggested, a generic "URI command" would be the best solution.
Yeah, for sure. I'd be over the moon with that. However, I think you might be able to use either the Storage API or a file in the support directory to store a list of custom URIs, then show them in a List or as Actions. I was probably using the word "command" when it means something very specific wrt to Raycast. I just meant some way to register those.
But regardless a generic URI command is needed for that anyway, so this is a perfect place to start.
Using advanced URI makes tons of sense, but it feels like we're missing a lot of its power! It would be great to be able to configure custom URI commands.
For example, if I use Periodic Notes for my daily notes instead of the core daily notes plugin, it would be nice to be able to call the proper command from raycast.
I don't think that adding support for every single command/plugin is particularly sustainable, but allowing custom commands might be. 😄