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

[FR] Custom URI commands #55

Open
nathonius opened this issue Apr 26, 2023 · 8 comments
Open

[FR] Custom URI commands #55

nathonius opened this issue Apr 26, 2023 · 8 comments

Comments

@nathonius
Copy link

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. 😄

@lemomar
Copy link

lemomar commented Jul 12, 2023

Bump!

@KevinBatdorf
Copy link
Owner

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?

@nathonius
Copy link
Author

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.

@KevinBatdorf
Copy link
Owner

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.

@nathonius
Copy link
Author

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.

@KevinBatdorf
Copy link
Owner

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.

@marcjulianschwarz
Copy link
Collaborator

marcjulianschwarz commented Jul 15, 2023

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.

@nathonius
Copy link
Author

nathonius commented Jul 15, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants