m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 09:03:43 -05:00

Created Examples (tmux) (markdown)

Junegunn Choi
2015-02-19 12:13:25 +09:00
parent 76d837e365
commit 98326e64dc

21
Examples-(tmux).md Normal file

@@ -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\\ -)\"'"
```