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

Running PromptLab Commands via PopClip #34

Open
ramzimalhas opened this issue May 9, 2024 Discussed in #29 · 0 comments
Open

Running PromptLab Commands via PopClip #34

ramzimalhas opened this issue May 9, 2024 Discussed in #29 · 0 comments

Comments

@ramzimalhas
Copy link

Discussed in #29

Originally posted by SKaplanOfficial January 14, 2024
To use PromptLab commands with PopClip, you can wrap the deeplink for a command in a PopClip extension snippet. All placeholders or action scripts used in the command will still work as intended. For example, to replace the selected text with the response from AI, you can use this extension that runs the "Ask AI & Replace Selection" command (assuming you've installed the command from the store):

#popclip extension snippet to replace the selected text with output from Raycast AI
name: Replace With AI Response
icon: AI
applescript: do shell script "open -g raycast://extensions/HelloImSteven/promptlab/search-commands?arguments=%7B%22commandName%22:%22Ask%20AI%20%26%20Replace%20Selection%22%7D"

We use Applecript and open -g to ensure the selected text comes from the target app rather than Raycast itself.

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

1 participant