Skip to content

Instantly share code, notes, and snippets.

@BobCHub
Created February 17, 2018 18:12
Show Gist options
  • Save BobCHub/0db54fe5e83fa4928fc8acdba7508dec to your computer and use it in GitHub Desktop.
Save BobCHub/0db54fe5e83fa4928fc8acdba7508dec to your computer and use it in GitHub Desktop.
FZF Fuzzy completion
FZF Fuzzy completion
Key bindings for command line
CTRL-T ----------------------------------------- Paste the selected files and directories onto the command line
CTRL-R ----------------------------------------- Paste the selected command from history onto the command line
ALT-C ------------------------------------------ cd into the selected directory
Files and directories
vim **<TAB> ----------------------------------- You can select multiple items with TAB key
vim ../**<TAB> --------------------------------- Files under parent directory
vim ../fzf**<TAB> ----------------------------- Files under parent directory that match `fzf`
vim ~/**<TAB> --------------------------------- Files under your home directory
cd **<TAB> ------------------------------------- Directories under current directory (single-selection)
cd ~/github/fzf**<TAB> ------------------------- Directories under ~/github that match `fzf`
Process IDs
kill -9 <TAB> ---------------------------------- Can select multiple processes with <TAB> or <Shift-TAB> keys
Host names
ssh **<TAB> ------------------------------------ fuzzy completion for host names is provided
telnet **<TAB>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment