Skip to content

fzf Shortcuts

DescriptionShortcut
Cursor, up and downArrow keys, Ctrl-k and Ctrl-j, Ctrl-p and Ctrl-n
Select multiple files (–multi flag)Tab or Shift + Tab
Select itemEnter
Cursor, scroll, selectMouse click, shift click, scroll

Source: GitHub - junegunn/fzf - Key bindings for command-line showing shell integrations

DescriptionShortcut
Search command historyCtrl + r
Search files/directoriesCtrl + t
cd in the selected directoryAlt + c
  • Ctrl+r: For smart searching your command history (replaces GNU Readline search)

Similar to Regex Regular Expression Snippets - Regex Regular Expression Snippets

  • End of line $, find files matching ending for example: .yaml$
  • Beginning of line ^, find files starting with for example: Dockerfile
  • OR operator |, find files matching either of the patterns for example: .yaml$|.yml$
  • AND operator /.../, find files matching both patterns for example: .yml$ docker
  • NOT operator !, find files not matching the pattern for example: !.yaml$
  • Exact match: ', find files matching the exact pattern for example: ‘Dockerfile’