# 策展 · X (Twitter) 🔥

> 📖 本站完整內容索引（documentation index）：[llms.txt](/llms.txt)

> 作者：Thariq (@trq212) · 平台：X (Twitter) · 日期：2026-03-11

> 原始來源：https://x.com/trq212/status/2031506296697131352

## 中文摘要

Claude Code 新增 `/btw` 側邊對話功能，提升工作流程效率。

Claude Code 作為 Anthropic 的終端機 AI 程式開發工具，最新更新引入 `/btw` 指令，讓使用者在主對話外進行快速側邊查詢，同時完整保留鍵盤快捷鍵清單與內建指令細節。這些功能強調無縫整合終端環境，感謝 [Erik Schluntz](https://twitter.com/ErikSchluntz?ref_src=twsrc%5Etfw) 貢獻 side project 建置，詳細文件見 [官方連結](https://t.co/hjO3YqvrPr) 與 [完整文件索引](https://code.claude.com/docs/llms.txt)。

**鍵盤快捷鍵配置**

macOS 使用者需將 Option/Alt 鍵設為 Meta 鍵，以支援 `Alt+B`、`Alt+F`、`Alt+Y`、`Alt+M`、`Alt+P` 等快捷鍵：
- **iTerm2**：settings → Profiles → Keys → set Left/Right Option key to "Esc+"
- **Terminal.app**：settings → Profiles → Keyboard → check "Use Option as Meta Key"
- **VS Code**：settings → Profiles → Keys → set Left/Right Option key to "Esc+"

詳細配置見 ` /en/terminal-config `。

**一般控制快捷鍵**

| Shortcut | Description | Context |
|----------|-------------|---------|
| `Ctrl+C` | Cancel current input or generation | Standard interrupt |
| `Ctrl+F` | Kill all background agents. Press twice within 3 seconds to confirm | Background agent control |
| `Ctrl+D` | Exit Claude Code session | EOF signal |
| `Ctrl+G` | Open in default text editor | Edit your prompt or custom response in your default text editor |
| `Ctrl+L` | Clear terminal screen | Keeps conversation history |
| `Ctrl+O` | Toggle verbose output | Shows detailed tool usage and execution |
| `Ctrl+R` | Reverse search command history | Search through previous commands interactively |
| `Ctrl+V` or `Cmd+V` (iTerm2) or `Alt+V` (Windows) | Paste image from clipboard | Pastes an image or path to an image file |
| `Ctrl+B` | Background running tasks | Backgrounds bash commands and agents. Tmux users press twice |
| `Ctrl+T` | Toggle task list | Show or hide the `#task-list` in the terminal status area |
| Left/Right arrows | Cycle through dialog tabs | Navigate between tabs in permission dialogs and menus |
| Up/Down arrows | Navigate command history | Recall previous inputs |
| `Esc` + `Esc` | Rewind or summarize | Restore code and/or conversation to a previous point, or summarize from a selected message |
| `Shift+Tab` or `Alt+M` (some configurations) | Toggle permission modes | Switch between Auto-Accept Mode, Plan Mode, and normal mode. |
| `Option+P` (macOS) or `Alt+P` (Windows/Linux) | Switch model | Switch models without clearing your prompt |
| `Option+T` (macOS) or `Alt+T` (Windows/Linux) | Toggle extended thinking | Enable or disable extended thinking mode. Run `/terminal-setup` first to enable this shortcut |

**文字編輯快捷鍵**

| Shortcut | Description | Context |
|----------|-------------|---------|
| `Ctrl+K` | Delete to end of line | Stores deleted text for pasting |
| `Ctrl+U` | Delete entire line | Stores deleted text for pasting |
| `Ctrl+Y` | Paste deleted text | Paste text deleted with `Ctrl+K` or `Ctrl+U` |
| `Alt+Y` (after `Ctrl+Y`) | Cycle paste history | After pasting, cycle through previously deleted text. Requires Option as Meta on macOS |
| `Alt+B` | Move cursor back one word | Word navigation. Requires Option as Meta on macOS |
| `Alt+F` | Move cursor forward one word | Word navigation. Requires Option as Meta on macOS |

**主題與顯示快捷鍵**

| Shortcut | Description | Context |
|----------|-------------|---------|
| `Ctrl+T` | Toggle syntax highlighting for code blocks | Only works inside the `/theme` picker menu. Controls whether code in Claude's responses uses syntax coloring |

語法高亮僅在 Claude Code 原生建置可用。

**多行輸入方法**

| Method | Shortcut | Context |
|--------|----------|---------|
| Quick escape | `\` + `Enter` | Works in all terminals |
| macOS default | `Option+Enter` | Default on macOS |
| Shift+Enter | `Shift+Enter` | Works out of the box in iTerm2, WezTerm, Ghostty, Kitty |
| Control sequence | `Ctrl+J` | Line feed character for multiline |
| Paste mode | Paste directly | For code blocks, logs |

`Shift+Enter` 在 iTerm2、WezTerm、Ghostty、Kitty 無需配置；其他終端如 VS Code、Alacritty、Zed、Warp 需執行 `/terminal-setup` 安裝 binding。

**快速指令**

| Shortcut | Description | Notes |
|----------|-------------|-------|
| `/` at start | Command or skill | See `#built-in-commands` and `/en/skills` |
| `!` at start | Bash mode | Run commands directly and add execution output to the session |
| `@` | File path mention | Trigger file path autocomplete |

輸入 `/` 查看所有可用指令，或 `/` 後接字母過濾；部分指令依平台、方案、環境而異，如 `/desktop` 限 macOS/Windows，`/upgrade` 與 `/privacy-settings` 限 Pro/Max 方案，`/terminal-setup` 在原生支援 keybindings 的終端隱藏。內建技能如 `/simplify`、`/batch`、`/debug` 見 `/en/skills#bundled-skills`。

**內建指令清單（部分）**

- `/add-dir <path>`：新增工作目錄至當前工作階段。
- `/agents`：管理 `/en/sub-agents` 配置。
- `/btw <question>`：快速側邊提問，不加入主對話，擁有完整對話脈絡但無 tool calls，僅單一回合輸出。詳細見 [官方連結](https://t.co/9suUoMGLiD)。
- `/chrome`：配置 `/en/chrome` 設定。
- `/clear`：清空對話歷史並釋放脈絡，别名 `/reset`、`/new`。
- `/compact [instructions]`：使用可選焦點指令壓縮對話。
- `/config`：開啟 Settings (`/en/settings`) 介面（Config 標籤），别名 `/settings`。
- `/context`：以彩色網格視覺化當前脈絡使用量。
- `/copy`：複製最後 assistant 回應至剪貼簿；code blocks 顯示互動選擇器。
- `/cost`：顯示 token 使用統計，詳見 cost tracking guide (`/en/costs#using-the-cost-command`)。
- `/desktop`：在 Claude Code Desktop app 繼續工作階段，限 macOS/Windows，别名 `/app`。
- `/diff`：開啟互動 diff viewer，顯示 uncommitted changes 與 per-turn diffs；左/右箭頭切換 git diff 與 Claude turns，上/下箭頭瀏覽檔案。
- `/doctor`：診斷並驗證安裝與設定。
- `/exit`：退出 CLI，别名 `/quit`。
- `/export [filename]`：匯出對話為 plain text；指定 filename 寫入檔案，否則開啟對話框。
- `/extra-usage`：設定額外使用量以應對 rate limits。
- `/fast [on|off]`：切換 fast mode (`/en/fast-mode`)。
- `/feedback [report]`：提交回饋，别名 `/bug`。
- `/fork [name]`：在此點建立對話 fork。
- `/help`：顯示幫助與可用指令。
- `/hooks`：管理 hook (`/en/hooks`) 配置，用於 tool events。
- `/ide`：管理 IDE 整合並顯示狀態。
- `/init`：使用 `CLAUDE.md` 初始化專案。
- `/insights`：產生報告分析工作階段，包括專案領域、互動模式與摩擦點。
- `/install-github-app`：為 repository 設定 Claude GitHub Actions (`/en/github-actions`)，引導選擇 repo 並配置。
- `/install-slack-app`：安裝 Claude Slack app，開啟瀏覽器完成 OAuth。
- `/keybindings`：開啟或建立 keybindings 設定檔。
- `/login`：登入 Anthropic 帳戶。
- `/logout`：登出 Anthropic 帳戶。
- `/mcp`：管理 MCP server 連線與 OAuth。
- `/memory`：編輯 `CLAUDE.md` 記憶文件，啟用/停用 auto-memory (`/en/memory#auto-memory`)。
- `/mobile`：顯示 QR code 下載 Claude mobile app，别名 `/ios`、`/android`。
- `/model [model]`：選擇或變更 AI model；左/右箭頭調整 effort level，立即生效。
- `/output-style [style]`：切換 output styles (`/en/output-styles`)；**Default** 標準、**Explanatory** 新增教育洞見、**Learning** 要求使用者寫 code 練習；可自訂。

**進階指令與功能**

- `/passes`：分享免費一週 Claude Code，限符合資格帳戶。
- `/permissions`：檢視或更新 permissions (`/en/permissions#manage-permissions`)，别名 `/allowed-tools`。
- `/plan`：直接進入 plan mode。
- `/plugin`：管理 plugins (`/en/plugins`)。
- `/pr-comments [PR]`：擷取 GitHub PR 評論，自動偵測當前 branch PR，或傳 PR URL/號碼，需 `gh` CLI。
- `/privacy-settings`：檢視並更新隱私設定，限 Pro/Max。
- `/release-notes`：檢視完整 changelog，最新版本置頂。
- `/reload-plugins`：重新載入 plugins (`/en/plugins`)，無需重啟。
- `/remote-control`：啟用 remote control (`/en/remote-control`) 從 claude.ai，别名 `/rc`。
- `/remote-env`：配置 teleport sessions (`/en/claude-code-on-the-web#teleport-a-web-session-to-your-terminal`) 預設遠端環境。
- `/rename [name]`：重新命名工作階段，無參數自動產生。
- `/resume [session]`：依 ID/名稱恢復對話，别名 `/continue`。
- `/review`：**已棄用**，改用 `claude plugin install code-review@claude-code-marketplace` 安裝 [`code-review` plugin](https://github.com/anthropics/claude-code-marketplace/blob/main/code-review/README.md)。
- `/rewind`：倒帶對話/程式碼，别名 `/checkpoint`，見 checkpointing (`/en/checkpointing`)。
- `/sandbox`：切換 sandbox mode (`/en/sandboxing`)，限支援平台。
- `/security-review`：分析當前 branch 變更的安全漏洞，如 injection、auth 問題、資料暴露。
- `/skills`：列出可用 skills (`/en/skills`)。
- `/stats`：視覺化每日使用、歷史、連續天數、model 偏好。
- `/status`：開啟 Settings（Status 標籤），顯示版本、model、帳戶、連線。
- `/statusline`：配置 status line (`/en/statusline`)，無參數自動配置。
- `/stickers`：訂購 Claude Code stickers。
- `/tasks`：列出並管理背景任務。
- `/terminal-setup`：配置終端 keybindings，如 Shift+Enter。
- `/theme`：變更顏色主題，包括 light/dark、色盲友善、ANSI。
- `/upgrade`：開啟升級頁面。
- `/usage`：顯示方案限制與 rate limit。
- `/vim`：切換 Vim/Normal 編輯模式。

**MCP 提示**：MCP servers 暴露提示作為 `/mcp__<server>__<prompt>` 指令，動態發現，詳見 MCP prompts (`/en/mcp#use-mcp-prompts-as-commands`)。

**Vim 編輯模式**

啟用 `/vim` 或經 `/config` 永久設定。

**Vim 模式切換**

| Command | Action | From mode |
|---------|--------|-----------|
| `Esc` | Enter NORMAL mode | INSERT |
| `i` | Insert before cursor | NORMAL |
| `I` | Insert at beginning of line | NORMAL |
| `a` | Insert after cursor | NORMAL |
| `A` | Insert at end of line | NORMAL |
| `o` | Open line below | NORMAL |
| `O` | Open line above | NORMAL |

**Vim 導航（NORMAL 模式）**

| Command | Action |
|---------|--------|
| `h`/`j`/`k`/`l` | Move left/down/up/right |
| `w` | Next word |
| `e` | End of word |
| `b` | Previous word |
| `0` | Beginning of line |
| `$` | End of line |
| `^` | First non-blank character |
| `gg` | Beginning of input |
| `G` | End of input |
| `f{char}` | Jump to next occurrence of character |
| `F{char}` | Previous occurrence |
| `t{char}` | Just before next |
| `T{char}` | Just after previous |
| `;` | Repeat last f/F/t/T |
| `,` | Repeat in reverse |

游標在輸入開頭/結尾無法移動時，箭頭鍵導航指令歷史。

**Vim 編輯指令（NORMAL 模式）**

- `x`：刪除字元。
- `dd`：刪除行。
- `D`：刪除至行尾。
- `dw`/`de`/`db`：刪除單詞/至尾/回頭。
- `cc`：變更行。
- `C`：變更至行尾。
- `cw`/`ce`/`cb`：變更單詞/至尾/回頭。
- `yy`/`Y`：複製行。
- `yw`/`ye`/`yb`：複製單詞/至尾/回頭。
- `p`：貼上後游標。
- `P`：貼上前游標。
- `>>`：縮進行。
- `<<`：取消縮進。
- `J`：合併行。
- `.`：重複上次變更。

**文字物件（NORMAL 模式）**

與 `d`、`c`、`y` 等運算子搭配：`iw`/`aw`（內/圍繞單詞）、`iW`/`aW`（內/圍繞 WORD）、`i"`/`a"`（雙引號）、`i'`/`a'`（單引號）、`i(`/`a(`（括號）、`i`/`a[`（方括號）、`i{`/`a{`（大括號）。

**指令歷史與反向搜尋**

每工作目錄獨立儲存，`/clear` 重置（前次保留可恢復）；Up/Down 箭頭導航；`Ctrl+R` 反向搜尋：按下啟動、輸入查詢、`Ctrl+R` 循環舊匹配、`Tab`/`Esc` 接受編輯、`Enter` 執行、`Ctrl+C`/Backspace 取消。

**背景 Bash 指令**

非同步執行，帶 task ID；Claude 回應新提示同時運行；`Ctrl+B`（Tmux 兩次）或提示 Claude；透過 TaskOutput tool 緩衝輸出；自動清理；停用設 `CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1`。常見如 webpack、vite、make、npm、yarn、pnpm、jest、pytest、dev servers、docker、terraform。

**Bash 模式（! 前綴）**

直接執行無 Claude 解釋，輸出加入脈絡：
```bash
! npm test
! git status
! ls -la
```
即時進度、`Ctrl+B` 背景、Tab 自動完成、`Escape`/Backspace/`Ctrl+U` 退出。

**提示建議**

工作階段啟動顯示 git 歷史灰色範例，依對話延續；`Tab` 接受編輯、`Enter` 提交；背景執行重用快取；首回合後跳過、非互動、plan mode；停用設 `CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false` 或 `/config`。

**任務清單**

狀態區顯示（pending/in progress/complete），最多 10 項；`Ctrl+T` 切換；Claude 指令 "show me all tasks" 或 "clear all tasks"；跨壓縮持久；分享用 `CLAUDE_CODE_TASK_LIST_ID=my-project claude`（存 `~/.claude/tasks/`）；停用 `CLAUDE_CODE_ENABLE_TASKS=false`。

**PR 審核狀態**

footer 顯示可點擊 PR 連結（如 "PR #446"），顏色標記（綠：approved；黃：pending；紅：changes requested；灰：draft；紫：merged）；`Cmd+click` (Mac) 或 `Ctrl+click` 開瀏覽器；每 60 秒更新，需 `gh` CLI（`gh auth login`）。

**其他資源**

- [Skills (`/en/skills`)：自訂提示/工作流程。
- Checkpointing (`/en/checkpointing`)：倒帶編輯/恢復狀態。
- CLI reference (`/en/cli-reference`)：旗標/選項。
- Settings (`/en/settings`)：配置。
- Memory management (`/en/memory`)：`CLAUDE.md` 文件。

## 標籤

CLI, 功能更新, Anthropic
