Overview
WezTerm provides powerful search capabilities for finding text in your terminal output and scrollback history. You can search using plain text, case-sensitive matching, or regular expressions.Basic Search
Search
Open the search overlay with an optional pre-filled pattern:Pattern
required
The search pattern to use. Can be one of:
'CurrentSelectionOrEmptyString'- Use selected text or empty (default){ CaseSensitiveString = 'text' }- Exact case-sensitive match{ CaseInSensitiveString = 'text' }- Case-insensitive match{ Regex = 'pattern' }- Regular expression pattern
Search Pattern Types
CurrentSelectionOrEmptyString
Use the currently selected text as the search term:CaseSensitiveString
Search for an exact string match:CaseInSensitiveString
Search for a string ignoring case:Regex
Search using regular expressions:WezTerm uses Rust’s regex syntax. View the full syntax documentation
Copy Mode Search
When in copy mode, you can use search-specific navigation actions:Copy Mode Search Actions
CopyModeAssignment
Open or edit the search pattern
CopyModeAssignment
Jump to the next match
CopyModeAssignment
Jump to the previous match
CopyModeAssignment
Jump forward by a page of matches
CopyModeAssignment
Jump backward by a page of matches
CopyModeAssignment
Toggle between case-sensitive, case-insensitive, and regex matching
CopyModeAssignment
Clear the current search pattern
CopyModeAssignment
Accept the current pattern and close the search input
ActivateCopyMode
Enter copy mode, which provides keyboard-driven navigation and search:- Navigate with keyboard (vim-style bindings)
- Search and navigate results
- Select and copy text without using the mouse
Complete Example
Search Overlay Controls
When the search overlay is active:- Enter - Navigate to next match
- Shift+Enter - Navigate to previous match
- Ctrl+R - Cycle match type (case-sensitive → case-insensitive → regex)
- Ctrl+U - Clear the search input
- Escape - Close search overlay
- Up/Down arrows - Navigate match history
Regular Expression Examples
Common regex patterns for searching:Related Actions
- Copy/Paste Actions - Copy search results
- Scrolling Actions - Navigate to search matches
- QuickSelect - Alternative pattern-based selection