一個盒子,四種東西
README:
⌘K(or a double tap of Shift) opens a palette that finds chats, workspaces and projects across every open project, runs the app’s commands with their shortcuts shown, and jumps to a Settings section. With nothing typed it lists the chats waiting for you.
- 找:chat、工作區、專案——跨每一個開著的專案
- 跑:app 命令,快捷鍵直接顯示在旁邊
- 跳:Settings 的任一區段
- 空打:列出等你回來的對話
Double Shift 的判定窗(apps/web/src/search/doubleShift.ts):兩下間隔 ≤300ms,且 100ms 內沒夾其他鍵——DOUBLE_SHIFT = { stepMs: 300, otherKeyGuardMs: 100 }。
全域快捷鍵(皆有 ⌘/Ctrl 修飾)
| 快捷鍵 | 動作 |
|---|---|
| ⌘K / Ctrl+K | 開搜尋面板 |
| ⌘N / Ctrl+N | 新工作區 |
| ⌘B / Ctrl+B | Projects 面板 |
| ⌘J / Ctrl+J | Workspace 面板 |
| ⌘⇧J / Ctrl+Shift+J | 底部面板 |
命令群組與面板內快捷鍵
面板命令分五群(CommandGroup):work / navigation / workspace / view / settings。代表命令:
| 群 | 命令(id) | 面板快捷鍵 |
|---|---|---|
| work | workspace.new、chat.new、project.open、project.openPath、project.create、workspace.openDefault、terminal.new |
workspace.new = ⌘N(網頁版 ⌥N) |
| navigation | chat.history、`view.show.specs |
files |
| view | view.toggleLeft / toggleRight / toggleBottom |
⌘B / ⌘J / ⌘⇧J |
| workspace | workspace.markRead/markUnread、settle/unsettle、reveal、copyPath、openIn.<editor> |
— |
| settings | settings.open、setting:${section.id} |
settings.open = ⌘,(桌面版) |
命令標題全部走 i18n(如 t("commands.workspace.new")),原始碼無硬編碼英文。
網頁級快捷鍵與範圍和弦
| 快捷鍵 | 動作 |
|---|---|
| Ctrl+W(終端機內 F4) | 關閉項目 |
| Ctrl+Q(Linux,長按) | 結束 app |
| Ctrl+, | 開設定 |
| Alt+1…9(非 Apple 平台) | 切換搜尋範圍——Alt+數字直接跳第 N 個範圍 |
範圍和弦的原始判定(apps/web/src/search/scopeChord.ts):需按著 Alt、未按 Ctrl/⌘、非 Apple 平台、按鍵是 1–9。