diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 0d52717..51d6a76 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -91,17 +91,34 @@ set -g @continuum-restore 'on' set -g @resurrect-strategy-nvim 'session' set -g @resurrect-capture-pane-contents 'on' set -g @resurrect-processes 'ssh nvim man less tail btop htop vi vim' # space separated list of programs to restore + set -g @matryoshka_down_keybind 'M-d' # keybind to disable outer-most active tmux set -g @matryoshka_up_keybind 'M-e' # keybind to enable inner-most inactive tmux set -g @matryoshka_up_recursive_keybind 'M-U' # keybind to recursively enable all tmux instances set -g @matryoshka_inactive_status_style 'fg=default,bg=brightblack' # TODO: Try to make this look better.. # set -g @matryoshka_status_style_option 'my-status-style' +# use fzf to switch sessions +unbind s +bind-key s run-shell -b "$HOME/.config/tmux/plugins/tmux-fzf/scripts/session.sh switch" +# use fzf to switch windows +unbind w +bind-key w run-shell -b "$HOME/.config/tmux/plugins/tmux-fzf/scripts/window.sh switch" + ##### FZF settings TMUX_FZF_SESSION_FORMAT="#{session_windows} windows" +bind m run-shell -b "$HOME/.config/tmux/plugins/tmux-fzf/scripts/menu.sh" + +# needs 1 or 3+ entries. TMUX_FZF_MENU=\ +"rename window\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/window.sh rename\n"\ "switch session\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/session.sh switch\n"\ -"rename window\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/window.sh rename\n" +"change pane layout\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/pane.sh layout\n"\ +"break out pane\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/pane.sh break\n"\ +"join pane\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/pane.sh join\n"\ +"session options\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/session.sh\n"\ +"window options\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/window.sh\n"\ +"pane options\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/pane.sh\n" run '~/.config/tmux/plugins/tpm/tpm'