Overview
Zed includes a fully integrated terminal emulator built on top of Alacritty’s terminal engine, providing a native terminal experience directly within your editor.Terminal Actions
Zed’s terminal supports a comprehensive set of actions for controlling terminal behavior.Opening Terminals
Keybindings:Ctrl+~- New terminal in current directoryCtrl+`- Toggle terminal panel
Terminal Environment
Zed sets up specialized environment variables for terminal sessions:Environment Variables
ZED_TERM=true- Indicates the terminal is running in ZedTERM_PROGRAM=zed- Program name identifierTERM=xterm-256color- Terminal type for 256-color supportCOLORTERM=truecolor- Enables true color supportTERM_PROGRAM_VERSION- Zed version number
Terminal Features
Scrollback Buffer
The terminal maintains a scrollback buffer for reviewing previous output:Text Selection
Select text in the terminal using mouse or keyboard:- Click and drag to select text
- Double-click to select word
- Triple-click to select line
Copy and Paste
Keybindings:Cmd+C- Copy selection (or send interrupt if no selection)Cmd+V- Paste from clipboard
Terminal Events
The terminal emits various events for integration with the editor:Navigation Targets
The terminal can detect and handle file paths and URLs:Vi Mode
The terminal supports vi-style navigation and selection:- Vi-style cursor movement
- Text object selection
- Search and navigation
Shell Integration
Zed’s terminal works with shell integration features:- Working directory tracking - Terminal tracks the current working directory
- Command execution - Detects when commands start and finish
- Exit status - Captures command exit codes
Terminal Settings
- Block
- Beam
- Underline
Task Integration
Terminals can be spawned for running tasks:Task Reveal Strategies
Error Handling
The terminal provides detailed error information:Related Features
Tasks
Task runner and build commands
Git Integration
Git operations and version control
