Open countfloyd opened 1 year ago
hey @countfloyd Thanks for submitting this. We've recently exposed URIs for opening a new window/tab/launch configurations/etc. you can see an example of how it's being used in a Warp + Raycast extension here > Source code
That may help as a stopgap for some of the scripting functionality you're looking for.
Please add a :+1: to the original post at the top to signal that you want this feature, and then hit the subscribe button if you'd like to be notified.
@dannyneira where's the URI scheme documented?
found new window schema
here, while how can I achieve code
executed after launch 🤔
@xilopaint I've added the URI Scheme to our docs: https://docs.warp.dev/features/uri-scheme There are also plans to add more in the future!
@lcx-seima The best way for now to achieve this would be to use Launch Configurations. You can use them to open new windows and run commands within them. https://docs.warp.dev/features/sessions/launch-configurations#commands
@warpdotdev-dx thanks! But AppleScript is still needed to integrate Warp with Alfred. Here you can find an example of the iTerm integration through AppleScript: https://github.com/vitorgalvao/custom-alfred-iterm-scripts.
@xilopaint there is a Warp + Alfred extension here: https://github.com/joetannenbaum/alfred-workflows/tree/main/warp-launch-configuration
Only works for launch configurations as it hasn't been updated for the other URIs but it may be a starting point for any further extensions you may want to make.
@xilopaint there is a Warp + Alfred extension here: https://github.com/joetannenbaum/alfred-workflows/tree/main/warp-launch-configuration
Only works for launch configurations as it hasn't been updated for the other URIs but it may be a starting point for any further extensions you may want to make.
I don't want to make a workflow with Warp, I want to integrate it to Alfred. When a custom terminal is integrated, Alfred workflows will use it instead of macOS Terminal. Here's how iTerm is integrated:
After the custom terminal is integrated, we can also run terminal commands via Alfred panel:
If you create a URI to send text to Warp maybe it would be possible to integrate it to Alfred even without AppleScript support.
@xilopaint There are plans for some additional URIs (warp://action/replace_terminal_input?contents=
+1 on some sort of way to send a command to a new tab.
iTerm uses applescript for this, multiple linux console support calling the terminal from an executable like so:
konsole --new-tab -e "command"
gnome-terminal --tab -- "command"
I'm guessing that with the URI framework you're adding I'll have to URI escape my input? this complicates things a lot more than necessary.
Discord username (optional)
No response
Describe the solution you'd like?
Is your feature request related to a problem? Please describe.
No response
Additional context
No response
How important is this feature to you?
3
Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087
None