From 98326e64dcddf1b2cb756bc21030080dcc8b08d2 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 19 Feb 2015 12:13:25 +0900 Subject: [PATCH] Created Examples (tmux) (markdown) --- Examples-(tmux).md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Examples-(tmux).md diff --git a/Examples-(tmux).md b/Examples-(tmux).md new file mode 100644 index 0000000..b2df710 --- /dev/null +++ b/Examples-(tmux).md @@ -0,0 +1,21 @@ +### Select pane + +Allows you to select pane with `bind-key + 0`. +Requires [`ftpane()` function](https://github.com/junegunn/fzf/wiki/Examples#tmux). + +``` +# Index starts from 1 +set-option -g base-index 1 + +# select-pane (@george-b) +bind-key 0 run "tmux split-window -p 40 'bash -ci ftpane'" +``` + +### Search entire file system (ALT-`) + +ALT-` 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-`' run "tmux split-window -p 40 'tmux send-keys -t #{pane_id} \"$(locate / | fzf -m | paste -sd\\ -)\"'" +``` \ No newline at end of file