From ec2753465675d258b489443cbcc1852de20e1892 Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 9 Feb 2026 00:21:58 +0100 Subject: [PATCH] tmux+fzf --- .tmux.conf | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 50a6969..b2869d9 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -12,8 +12,8 @@ set -q -g status-utf8 on setw -q -g utf8 on # panes retain path -bind - split-window -v -c "#{pane_current_path}" -bind _ split-window -h -c "#{pane_current_path}" +bind '"' split-window -v -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" # shift+arrow window switching (no wrap) bind -n S-Left if-shell "[ #{window_index} -ne $(tmux list-windows -F '##{window_index}' | head -1) ]" "previous-window" @@ -28,3 +28,13 @@ set -s escape-time 10 set -g base-index 1 setw -g pane-base-index 1 set -g renumber-windows on + +# Auto-rename windows: directory/process +set -g automatic-rename on +set -g automatic-rename-format '#{pane_current_command}@#{b:pane_current_path}' + +# Rename window (prefix + R) +bind R command-prompt -I "#{window_name}" "rename-window '%%'" + +# Fuzzy window switcher (prefix + f) +bind f display-popup -E "tmux list-windows -F '#{window_index}: #{window_name}' | fzf --reverse | cut -d: -f1 | xargs tmux select-window -t"