From 1468a9316a0d6da8ba1d8cef66841a6484cfae32 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Sun, 26 Apr 2026 14:55:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20AGENTS.md=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=92=8C=20open-vscode-remote.sh=20=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 7 +++++++ readme.md | 6 +++++- sh/open-vscode-remote.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 AGENTS.md create mode 100755 sh/open-vscode-remote.sh 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 <