Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions apps/desktop/src/lib/trpc/routers/external/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ describe("getAppCommand", () => {
});
});

test("returns correct command for ghostty", () => {
const result = getAppCommand("ghostty", "/path/to/file");
expect(result).toEqual({
command: "open",
args: ["-a", "Ghostty", "/path/to/file"],
});
});

describe("JetBrains IDEs", () => {
test("returns correct command for intellij", () => {
const result = getAppCommand("intellij", "/path/to/file");
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/src/lib/trpc/routers/external/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const APP_NAMES: Record<ExternalApp, string | null> = {
iterm: "iTerm",
warp: "Warp",
terminal: "Terminal",
ghostty: "Ghostty",
sublime: "Sublime Text",
intellij: "IntelliJ IDEA",
webstorm: "WebStorm",
Expand Down
7 changes: 7 additions & 0 deletions apps/desktop/src/renderer/assets/app-icons/ghostty.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import cursorIcon from "renderer/assets/app-icons/cursor.svg";
import datagripIcon from "renderer/assets/app-icons/datagrip.svg";
import finderIcon from "renderer/assets/app-icons/finder.png";
import fleetIcon from "renderer/assets/app-icons/fleet.svg";
import ghosttyIcon from "renderer/assets/app-icons/ghostty.svg";
import golandIcon from "renderer/assets/app-icons/goland.svg";
import intellijIcon from "renderer/assets/app-icons/intellij.svg";
import itermIcon from "renderer/assets/app-icons/iterm.png";
Expand Down Expand Up @@ -57,6 +58,7 @@ export const APP_OPTIONS: AppOption[] = [
{ id: "iterm", label: "iTerm", icon: itermIcon },
{ id: "warp", label: "Warp", icon: warpIcon },
{ id: "terminal", label: "Terminal", icon: terminalIcon },
{ id: "ghostty", label: "Ghostty", icon: ghosttyIcon },
];

export const VSCODE_OPTIONS: AppOption[] = [
Expand Down
1 change: 1 addition & 0 deletions packages/local-db/src/schema/zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export const EXTERNAL_APPS = [
"iterm",
"warp",
"terminal",
"ghostty",
// JetBrains IDEs
"intellij",
"webstorm",
Expand Down
Loading