diff --git a/apps/desktop/src/lib/trpc/routers/external/index.ts b/apps/desktop/src/lib/trpc/routers/external/index.ts index 243621c32e6..ecf47977f01 100644 --- a/apps/desktop/src/lib/trpc/routers/external/index.ts +++ b/apps/desktop/src/lib/trpc/routers/external/index.ts @@ -34,6 +34,8 @@ const getAppCommand = ( return { command: "open", args: ["-a", "Warp", targetPath] }; case "terminal": return { command: "open", args: ["-a", "Terminal", targetPath] }; + case "sublime": + return { command: "open", args: ["-a", "Sublime Text", targetPath] }; default: return null; } diff --git a/apps/desktop/src/main/lib/db/schemas.ts b/apps/desktop/src/main/lib/db/schemas.ts index 312b6196807..a24e1bb3d6b 100644 --- a/apps/desktop/src/main/lib/db/schemas.ts +++ b/apps/desktop/src/main/lib/db/schemas.ts @@ -62,6 +62,7 @@ export const EXTERNAL_APPS = [ "finder", "vscode", "cursor", + "sublime", "xcode", "iterm", "warp", diff --git a/apps/desktop/src/renderer/assets/app-icons/sublime.svg b/apps/desktop/src/renderer/assets/app-icons/sublime.svg new file mode 100644 index 00000000000..e70b24732fe --- /dev/null +++ b/apps/desktop/src/renderer/assets/app-icons/sublime.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/desktop/src/renderer/components/OpenInButton/OpenInButton.tsx b/apps/desktop/src/renderer/components/OpenInButton/OpenInButton.tsx index 646cf645719..192ffec98c7 100644 --- a/apps/desktop/src/renderer/components/OpenInButton/OpenInButton.tsx +++ b/apps/desktop/src/renderer/components/OpenInButton/OpenInButton.tsx @@ -14,6 +14,7 @@ import { LuCopy } from "react-icons/lu"; import cursorIcon from "renderer/assets/app-icons/cursor.svg"; import finderIcon from "renderer/assets/app-icons/finder.png"; import itermIcon from "renderer/assets/app-icons/iterm.png"; +import sublimeIcon from "renderer/assets/app-icons/sublime.svg"; import terminalIcon from "renderer/assets/app-icons/terminal.png"; import vscodeIcon from "renderer/assets/app-icons/vscode.svg"; import warpIcon from "renderer/assets/app-icons/warp.png"; @@ -30,6 +31,7 @@ const APP_OPTIONS: AppOption[] = [ { id: "finder", label: "Finder", icon: finderIcon }, { id: "cursor", label: "Cursor", icon: cursorIcon }, { id: "vscode", label: "VS Code", icon: vscodeIcon }, + { id: "sublime", label: "Sublime Text", icon: sublimeIcon }, { id: "xcode", label: "Xcode", icon: xcodeIcon }, { id: "iterm", label: "iTerm", icon: itermIcon }, { id: "warp", label: "Warp", icon: warpIcon },