Keyboard Shortcuts - peco/peco GitHub Wiki
Mouse/Keyboard Shortcuts
Global Shortcuts
- Esc or CTRL+c - Exit peco
- CTRL-r - Rotate filter (case sensitive, smart case, regexp, ignore case)
- CTRL-t - Toggle query (clear query and reset results, press again to put query back and filter results)
- CTRL-l - Refresh screen
Selection Shortcuts
- up_arrow or CTRL-p - Move cursor up
- right_arrow - Go to next page of results (essentially equivalent to page down)
- down_arrow or CTRL-n - Move cursor down
- left_arrow - Go to previous page of results (essentially equivalent to page up)
- enter - Select line at cursor position (if none are otherwise selected), output selected lines to CLI, and exit
- CTRL+space - Select line and move cursor down
- CTRL+g - Clear all selections
Query Editor Shortcuts
Movement Shortcuts
- CTRL-a - Move cursor to the beginning of the line
- CTRL-e - Move cursor to the end of the line
- CTRL-b - Move cursor backward one character
- CTRL-f - Move cursor forward one character
- CTRL-v - Show context: lines around a selected search-result (ViewArround)
Editing Shortcuts
- backspace - Delete one character backward
- CTRL-d - Delete one character forward
- CTRL-w - Delete one word backward
- CTRL-k - Kill query string to the end of the line
- CTRL-u - Kill query string to the end of the line
Mouse Shortcuts
- scrollup - Move cursor up
- scrolldown - Move cursor down