Deep Dive: Terminal & Command Blocks
This guide walks you through daily, hands-on usage of Warpai’s core terminal capabilities and integrated developer tools. It focuses strictly on how to use each feature: what to click, which keys to press, and how to navigate efficiently.
Part 1: Terminal Basics & Command Blocks
Unlike traditional terminals that treat output as an unstructured, scrolling stream of raw text, Warpai organizes every command into an atomic Block.
┌─────────────────────────────────────────────────────────────────────────────┐
│ ❯ git status [0.08s] [✓ 0] │
│ On branch main │
│ Your branch is up to date with 'origin/main'. │
│ nothing to commit, working tree clean │
└─────────────────────────────────────────────────────────────────────────────┘
1. Navigating Blocks
- Mouse: Click any block in the terminal history to select it. A subtle highlight border indicates focus.
- Keyboard: Press
Cmd + Up/Cmd + Down(Ctrl + Up/Ctrl + Downon Windows) to jump focus from one command block to another.
2. Copying Input vs. Copying Clean Output
- Copy Command Input: Click the small clipboard icon on the top right of a block, or press
Cmd + Shift + C(Ctrl + Shift + Con Windows). Only the command line text (e.g.git status) is copied. - Copy Clean Output: Press
Cmd + Shift + O(Ctrl + Shift + Oon Windows). Only the output text generated by the command is copied—with no prompts, prompt symbols (❯), or timestamps cluttering your clipboard.
3. Collapsing and Expanding Long Outputs
When a command outputs hundreds of lines (e.g., npm install or cargo build):
- Click the chevron icon (▼) on the top left of the block header.
- Or select the block and press
Cmd + /(Ctrl + /on Windows). - The output collapses to a single clean line, keeping your terminal viewport uncluttered. Click it again to expand.
Block 块化操作特写:包含执行成功的命令块 [✓ 0] 与耗时、包含超长输出被折叠的块、右上角悬停展示“复制输入 / 复制纯净输出”操作图标。
Part 2: Smart Autocompletion & Command Palette
Warpai features intelligent command completion with built-in parameter signatures for Git, Docker, Cargo, NPM, Kubernetes, and hundreds of common CLI tools.
1. Using Smart Autocompletion
- Start typing a command (e.g.,
git check). - An interactive popup appears displaying matching subcommands (
checkout,check-ref-format, etc.) along with official documentation summaries. - Press
TaborDown Arrowto navigate options. - Press
EnterorTabto accept the highlighted completion. - If typing flags (e.g.,
git commit -), Warpai lists available options (-m,--amend,-a) with parameter explanations.
智能参数补全浮层:输入 git commit - 时弹出的交互式补全列表,显示 -m, -a, --amend 等参数说明与官方文档高亮。
2. Global Command Palette (Cmd + P / Ctrl + P)
- Press
Cmd + P(Ctrl + Pon Windows). - Type an action name (e.g.,
Split,Theme,Clear,New Tab). - Press
Enterto execute the action immediately without touching your mouse.
全局居中命令面板:按下 Cmd+P / Ctrl+P 弹出的动作搜索窗,展示切换主题、分屏、清屏等快捷操作的模糊匹配。
Part 3: Tabs & Split Panes
Warpai provides flexible workspace layout management optimized for both widescreen monitors and multi-tasking.
1. Vertical vs. Horizontal Tabs
- Toggle Mode: Press
Cmd + Shift + V(Ctrl + Shift + Von Windows) to switch between Vertical Tabs (pinned along the left of the terminal) and traditional horizontal tabs along the top. - Why Vertical Tabs?: When working across multiple Git worktrees and server sessions, horizontal tabs quickly get squashed. Vertical tabs display full checkout names and branch labels with zero truncation.
- New Tab:
Cmd + T(Ctrl + Ton Windows). - Close Tab:
Cmd + W(Ctrl + Won Windows).
2. Splitting Panes
You can divide any terminal tab into multiple independent panes:
- Split Vertically (Side by Side): Press
Cmd + D(Ctrl + Shift + Don Windows). - Split Horizontally (Top & Bottom): Press
Cmd + Shift + D(Ctrl + Shift + Eon Windows). - Navigate Between Panes: Press
Cmd + Option + Arrow Keys(Alt + Arrow Keyson Windows).
垂直标签栏与分屏:左侧垂直展示多个展开分支名与标签页,中间切分为左右双窗格(一个窗格跑编译,另一个跑命令)。
Part 4: Project Explorer (In-Terminal File Manager)
The right-hand panel gives you full visibility into your project directory without needing Finder, File Explorer, or a separate IDE.
- Toggle Project Explorer: Click the Folder icon in the top right utility toolbar, or press
Cmd + B(Ctrl + Bon Windows). - Operations: Right-click any file or folder to create files, rename, duplicate, or delete.
- Terminal Sync: Running
cd <path>in the terminal automatically updates and highlights the folder in the Project Explorer.
右侧项目文件树:展开清晰的文件目录树,展示右键菜单(新建文件/文件夹、重命名、删除),以及随终端 cd 自动联动高亮。
Part 5: Built-in Code Editor & Vim Mode
Click any text or code file in the Project Explorer to open it in Warpai’s built-in editor:
- Vim Mode: Turn on Vim mode in Settings. Press
Escto enter normal mode, navigate withh/j/k/l, and type:wto save or:qto close. - Syntax Highlighting: Supports Rust, Python, TypeScript, Go, C++, HTML, JSON, YAML, TOML, and Markdown.
轻量编辑器与 Vim 模式:在内置编辑器中打开代码文件,展现语法高亮、底栏显示 :w 保存状态及 Normal/Insert 模式光标。
Part 6: Live Markdown & Image Preview
Click any .md file in the Project Explorer, then toggle the Preview tab:
- Renders tables, checklists, callouts, and local/remote images.
- Updates in real-time as your coding agents edit or create documentation files.
Markdown 实时富文本渲染:右侧 Preview 标签展示技术文档、GFM 排版、表格、代码高亮框及本地/远程图片就地渲染。
Part 7: Terminal-Native Git Code Review
Inspect your working tree changes side by side before staging or committing:
- Shows Staged Changes, Unstaged Changes, and Untracked Files.
- Displays side-by-side or unified diffs with green additions and red deletions.
内置 Git Code Review 面板:展示已暂存、未暂存、未追踪文件分类,并列展示双栏 Diff 对比(红绿行高亮与折叠行展开)。