From f8716663177cf5767c0093cf75418719a46587d7 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Fri, 7 May 2021 14:10:08 -0600 Subject: Comment out fzf-tmux not working right now --- scripts/tmux_session_fzf | 4 ++-- stow/tmux/.tmux.conf | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/tmux_session_fzf b/scripts/tmux_session_fzf index 140a474..4f5a96e 100755 --- a/scripts/tmux_session_fzf +++ b/scripts/tmux_session_fzf @@ -12,9 +12,9 @@ get_active_pane(){ tmux list-windows -t "${SESSION}" | grep '(active)' | cut -c 1 } -TARGET=$(tmux ls | awk -F':' '{print $1}' | fzf-tmux -h) +TARGET=$(tmux ls | awk -F':' '{print $1}' | fzf-tmux) if [[ -n "${TARGET}" ]]; then WINDOW=$(get_active_pane "${TARGET}") echo "${TARGET}:${WINDOW}" >> ~/tmux.log - tmux switch-client -t "${TARGET}:${WINDOW}" + tmux switch-client -t "${TARGET}:${WINDOW}" fi diff --git a/stow/tmux/.tmux.conf b/stow/tmux/.tmux.conf index ba210ec..5749196 100644 --- a/stow/tmux/.tmux.conf +++ b/stow/tmux/.tmux.conf @@ -45,8 +45,11 @@ bind -Tcopy-mode-vi Enter send -X copy-pipe "tmux save-buffer - | xp" # clock mode is over written by sessionist bind C-t clock-mode # Use fzf for switching sessions -unbind s -bind s run-shell '~/.tmux/scripts/tmux_session_fzf' +# There is something wrong with fzf-tmux and tmux 3.2 and hasn't been fixed yet +# https://github.com/junegunn/fzf/pull/2379 +# But I need tmux 3.2 because 3.2-rc was randomly crashing so no fzf-tmux for now +# unbind s +# bind s run-shell '~/.tmux/scripts/tmux_session_fzf' # Renumber the windows bind C-w run-shell "~/.tmux/scripts/window_renum" -- cgit v1.2.3