Quickly execute common tmux commands inside fzf.
- prefix + f: open fzf fuzzy search window
- ctrl+d (supports multi selection): kill all the selected windows
- Enter (single selection): switch to the selected window
- ctrl+l (single or double selection): create link window. If two entries are selected, the first one will be the source window and the second one the target. If only one entry is selected, a new window in the current session will be created and linked to the selected window.
- ctrl+Alt+l (single selection): create link window. Use the selected window as source window and current window as target window.
Installation with Tmux Plugin Manager (recommended)
Add plugin to the list of TPM plugins in .tmux.conf
:
set -g @plugin 'free-easy/tmux-fzf'
Hit prefix + I
to fetch the plugin and source it.
You should now have all tmux-fzf
key bindings defined.
Clone the repo:
$ git clone https://github.com/free-easy/tmux-fzf ~/clone/path
Add this line to the bottom of .tmux.conf
:
run-shell ~/clone/path/tmux-fzf.tmux
Reload TMUX environment:
# type this in terminal
$ tmux source-file ~/.tmux.conf
You should now have all tmux-fzf
key bindings defined.