Skip to content

Commit

Permalink
Warp Terminal (#1238)
Browse files Browse the repository at this point in the history
* feat: adding warp terminal to run command

* feat: adding Warp terminal to README
  • Loading branch information
blyzer authored Mar 28, 2024
1 parent dacc293 commit cfb5d8d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/RunCommand.popclipext/Config.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
"option-term=iTerm2 v2.9+"
],
"applescript file": "iterm2-3.applescript"
},
{
"requirements": [
"text",
"option-term=Warp"
],
"applescript file": "warp.applescript"
}
],
"options": [
Expand All @@ -34,7 +41,8 @@
"values": [
"Terminal",
"iTerm2 v2.9+",
"iTerm2"
"iTerm2",
"Warp"
],
"identifier": "term"
}
Expand Down
2 changes: 2 additions & 0 deletions source/RunCommand.popclipext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ One can choose either Terminal or iTerm2.

19 Feb 2016: Added third config option to support iTerm2 v2.9 and above, which has breaking AppleScript changes.

28 Mar 2024: Added fourth config option to support Warp Terminal.

Credits
-------
Original extension and icon created by [James Smith](https://twitter.com/smithjw/status/244757999665700864).
Expand Down
9 changes: 9 additions & 0 deletions source/RunCommand.popclipext/warp.applescript
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tell application "Warp"
activate
-- If there are no open windows, open one.
if (count of windows) is less than 1 then
do script ""
end if
set theTab to selected tab in first window
do script "{popclip text}" in theTab
end tell

0 comments on commit cfb5d8d

Please sign in to comment.