From 2861e2ecef5f443c69458d5e360a168d22452913 Mon Sep 17 00:00:00 2001 From: Topher Brown <206988+topher200@users.noreply.github.com> Date: Mon, 12 Feb 2024 14:54:00 -0500 Subject: [PATCH] Add tmux-suspend plugin (#259) --- files/.tmux.conf | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/files/.tmux.conf b/files/.tmux.conf index bd0999a1..1fca8248 100644 --- a/files/.tmux.conf +++ b/files/.tmux.conf @@ -132,28 +132,44 @@ set -g @plugin 'tmux-plugins/tmux-logging' set -g @plugin 'tmux-plugins/tmux-yank' # stay in copy-mode on 'y' set -g @yank_action 'copy-pipe' -# https://github.com/schasse/tmux-jump; ace-jump in copy-mode -# 'f': jump to char -set -g @plugin 'schasse/tmux-jump' -set -g @jump-key 'f' + # http://go/gh/tmux-plugins/tmux-open # 'o': open thing under highlight # 'Ctrl-o': open highlight with $EDITOR # 'Shift-s': search with Google set -g @plugin 'tmux-plugins/tmux-open' + # http://go/gh/tmux-plugins/tmux-continuum set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' + # https://github.com/roosta/tmux-fuzzback # '?' to fzf search backwards in the scrollback buffer set -g @plugin 'roosta/tmux-fuzzback' + # https://github.com/laktak/extrakto # 'tab' to extract text set -g @extrakto_split_direction "v" set -g @plugin 'laktak/extrakto' + +# Fingers is a way to copy text using shortcuts. +# prefix + f to copy # https://github.com/Morantron/tmux-fingers set -g @plugin 'Morantron/tmux-fingers' - +set -g @fingers-key f + +# Plugin that displays prompt indicating currently active Tmux mode. +# https://github.com/MunifTanjim/tmux-mode-indicator +set -g @plugin 'MunifTanjim/tmux-mode-indicator' +set -g status-right '%Y-%m-%d %H:%M #{tmux_mode_indicator}' + +# Suspend to help with tmux-in-tmux. F12 to suspend +# https://github.com/MunifTanjim/tmux-suspend +set -g @plugin 'MunifTanjim/tmux-suspend' +set -g @suspend_suspended_options " \ + @mode_indicator_custom_prompt:: SUSPENDED , \ + @mode_indicator_custom_mode_style::bg=black\\,fg=red, \ +" # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm'