mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-20 09:33:42 -05:00
Created Examples (tmux) (markdown)
21
Examples-(tmux).md
Normal file
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\\ -)\"'"
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user