From 82ee122577d63157aefbbe42438361f75a993ff4 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 28 Jan 2015 12:00:22 +0900 Subject: [PATCH] Updated Examples (markdown) --- Examples.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Examples.md b/Examples.md index 92d186b..7839b84 100644 --- a/Examples.md +++ b/Examples.md @@ -373,4 +373,17 @@ function! GetCompletions() endfunction ``` -hit `` while in the ex commandline (i.e. after pressing `:`) to have fzf filter a list of vim's commandline auto-completions. Try `:colo␣` (be sure to include the space) or `:b␣`. There are special cases for handling file-searches, so that you can go deeper into the path than just one directory at a time, and so that you can add multiple files to the arglist at once. More special cases could be added. Some limitations: the auto-complete for `:help` and `:tag` are limited to 300 entries, so you may need to narrow it a bit. \ No newline at end of file +hit `` while in the ex commandline (i.e. after pressing `:`) to have fzf filter a list of vim's commandline auto-completions. Try `:colo␣` (be sure to include the space) or `:b␣`. There are special cases for handling file-searches, so that you can go deeper into the path than just one directory at a time, and so that you can add multiple files to the arglist at once. More special cases could be added. Some limitations: the auto-complete for `:help` and `:tag` are limited to 300 entries, so you may need to narrow it a bit. + +tmux +==== + +Search entire file system (`ALT-L`) +----------------------------------- + +ALT-L key will split the current window and start fzf for the entire list of files. The selected files will be pasted on to the original window. + +``` +# fzf-locate +bind-key -n 'M-l' run "tmux split-window -p 40 'tmux send-keys -t #{pane_id} \"$(locate / | fzf -m | paste -sd\\ -)\"'" +```