raycast / extensions

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

[Git Repos] Be able to run commands/scripts on a repository #14406

Open SamuelGadiel opened 1 month ago

SamuelGadiel commented 1 month ago

Extension

https://www.raycast.com/moored/git-repos

Description

It would be great to execute a script or command in that repository. For example, I could attach a shortcut (like Alt + Enter) to run a pre-defined script that cleans the repository and reinstalls the packages dependencies. Or maybe a script that starts a node server, or run vite for react.

My particular usecase would be to hit a shortcut that would run a script that opens the repository in multiple programs, like VS Code, iTerm2 (terminal) and Github Desktop.

But the idea is to run any script the user creates, just selecting it instead of selecting an app in the configuration dropdown.

Who will benefit from this feature?

Anyone who would like to have more customization when using the extension to manipulate the repository

Anything else?

No response

raycastbot commented 1 month ago

Thank you for opening this issue!

🔔 @moored @nitishpdmn @go-dima @cameronsstone you might want to have a look.

💡 Author and Contributors commands The author and contributors of `moored/git-repos` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot close as not planned` Closes the issue as not planned. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
nitishpdmn commented 1 month ago

You can already achieve this behavior by using Automator (builtin macOS app) to create an app that calls a script to do what you want.

Screenshot 2024-09-10 at 1 11 27 PM

SamuelGadiel commented 1 month ago

That's actually a great workaround, thanks for the suggestion.

I have just tested, works perfectly!

raycastbot commented 1 day ago

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊