Entering search mode
Press/ in normal mode to activate search mode. The status bar at the bottom changes to show your search query.
How search works
Search uses case-insensitive substring matching. The query you type is matched against the full text of each command in your history.Case-insensitive matching
All searches ignore case, so these queries produce identical results:git statusGIT STATUSGit StatusgIt StAtUs
Substring matching
The query can match anywhere in the command:Multi-word queries
You can search for multiple words. The entire query string is treated as a single substring:Editing the search query
While in search mode, you can edit your query using these keybindings:Delete one character
Delete the last word (removes trailing whitespace first, then deletes back to the previous whitespace)
Same as Ctrl+w (delete last word)
Clear the entire query
Word deletion example
Exiting search mode
PressEsc or Enter to exit search mode and return to normal mode. Your filter remains active until you clear it or enter a new search.
Clearing the filter
To remove an active filter, you have two options:- In search mode: Press
Ctrl+uto clear the query, then pressEscorEnter - From normal mode: Press
/to enter search mode, thenCtrl+uto clear, thenEscorEnter
Search with selection
Filtering and selection work together:- Selections persist: Selected commands remain selected even when filtered out of view
- Select all filtered: Press
ain normal mode to select only the currently visible (filtered) commands - Copy respects selection: Press
yto copy all selected commands, regardless of the current filter
Example workflow
Performance
Search is optimized for speed:- ASCII queries use byte-level case-insensitive matching
- Unicode queries use standard string lowercase comparison
- Results update on every keystroke with no perceptible delay