Skip to content
Open
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
Binary file added src/assets/images/kitty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/main/ipc/appIpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,16 @@ export function registerAppIpc() {

if (lastError instanceof Error) throw lastError;
throw new Error('Unable to launch Ghostty');
} else if (appId === 'kitty') {
const kittyExecArgs = buildGhosttyRemoteExecArgs({
host: connection.host,
username: connection.username,
port: connection.port,
targetPath: target,
});

await execFileCommand('kitty', ['-e', ...kittyExecArgs]);
return { success: true };
} else if (appConfig.supportsRemote) {
// App claims to support remote but we don't have a handler
return {
Expand Down
18 changes: 18 additions & 0 deletions src/shared/openInApps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const ICON_PATHS = {
phpstorm: 'phpstorm.svg',
'android-studio': 'android-studio.svg',
kiro: 'kiro.png',
kitty: 'kitty.png',
windsurf: 'windsurf.svg',
} as const;

Expand Down Expand Up @@ -264,6 +265,23 @@ export const OPEN_IN_APPS: OpenInAppConfigShape[] = [
},
},
},
{
id: 'kitty',
label: 'Kitty',
iconPath: ICON_PATHS.kitty,
supportsRemote: true,
platforms: {
darwin: {
openCommands: ['open -b net.kovidgoyal.kitty {{path}}', 'open -a "kitty" {{path}}'],
bundleIds: ['net.kovidgoyal.kitty'],
appNames: ['kitty'],
},
linux: {
openCommands: ['kitty --directory={{path}}'],
checkCommands: ['kitty'],
},
},
},
{
id: 'zed',
label: 'Zed',
Expand Down
2 changes: 1 addition & 1 deletion src/test/shared/openInApps.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('isOpenInAppSupportedForWorkspace', () => {

expect(remoteAppIds).not.toContain('zed');
expect(remoteAppIds).toEqual(
expect.arrayContaining(['cursor', 'vscode', 'terminal', 'warp', 'iterm2', 'ghostty'])
expect.arrayContaining(['cursor', 'vscode', 'terminal', 'warp', 'iterm2', 'ghostty', 'kitty'])
);
expect(remoteAppIds).not.toContain('vscodium');
});
Expand Down
Loading