diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..67d1441 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,7 @@ +# raycast + +对于 raycast 的使用,好用,但是有一些脚本还是需要自己写的。 + +- `./applescript` 是一些 applescript 脚本 +- `./sh` 是一些 shell 脚本 +- `./js` 是一些 javascript或者typescript 脚本 \ No newline at end of file diff --git a/readme.md b/readme.md index e63e8f3..67d1441 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,7 @@ # raycast -对于 raycast 的使用,好用,但是有一些脚本还是需要自己写的。 \ No newline at end of file +对于 raycast 的使用,好用,但是有一些脚本还是需要自己写的。 + +- `./applescript` 是一些 applescript 脚本 +- `./sh` 是一些 shell 脚本 +- `./js` 是一些 javascript或者typescript 脚本 \ No newline at end of file diff --git a/sh/open-vscode-remote.sh b/sh/open-vscode-remote.sh new file mode 100755 index 0000000..6c29a49 --- /dev/null +++ b/sh/open-vscode-remote.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Open VSCode Remote +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon 🖥️ +# @raycast.packageName @kevisual/raycast + +# Documentation: +# @raycast.description SSH to diana, fuzzy select a project with fzf, then open it in VSCode Remote +# @raycast.author abearxiong +# @raycast.authorURL https://raycast.com/abearxiong + +FZF_BIN="/usr/local/bin/fzf" + +CMD="ssh diana 'find /root/workspace/projects /root/workspace/docker -maxdepth 1 -mindepth 1 -type d 2>/dev/null' | $FZF_BIN --prompt='VSCode Remote > ' | xargs -I{} open 'vscode://vscode-remote/ssh-remote+diana{}'" + +osascript <