feat(terminal): add Tabby terminal support on macOS, Windows, and Linux

Add Tabby (https://github.com/Eugeny/tabby) as a preferred terminal option
across all three platforms:

- macOS: launch via `open -na Tabby --args run` with login shell
- Windows: search multiple executable candidates (PATH, LOCALAPPDATA,
  ProgramFiles) and launch via `tabby run cmd /K`
- Linux: add `tabby` and `tabby-terminal` to the auto-detection list

Also includes:
- Session manager integration with login-shell command wrapping
- Terminal selector UI entries for all platforms
- i18n labels (zh/en/ja)
- Unit tests for Tabby arg building (with/without cwd)

Closes https://github.com/farion1231/cc-switch/issues/1708
This commit is contained in:
YoVinchen
2026-03-30 00:43:55 +08:00
parent 67e074c0a7
commit 9620a8c769
11 changed files with 190 additions and 22 deletions
+3 -3
View File
@@ -303,9 +303,9 @@ export interface Settings {
// ===== 终端设置 =====
// 首选终端应用(可选,默认使用系统默认终端)
// macOS: "terminal" | "iterm2" | "warp" | "alacritty" | "kitty" | "ghostty"
// Windows: "cmd" | "powershell" | "wt"
// Linux: "gnome-terminal" | "konsole" | "xfce4-terminal" | "alacritty" | "kitty" | "ghostty"
// macOS: "terminal" | "iterm2" | "alacritty" | "kitty" | "ghostty" | "wezterm" | "tabby"
// Windows: "cmd" | "powershell" | "wt" | "tabby"
// Linux: "gnome-terminal" | "konsole" | "xfce4-terminal" | "alacritty" | "kitty" | "ghostty" | "tabby"
preferredTerminal?: string;
}