From 4a016cca6a73b202ac7ad0f5701a76d9918eb106 Mon Sep 17 00:00:00 2001 From: Matt Anderson Date: Wed, 4 Nov 2026 15:57:02 -0600 Subject: [PATCH] leader s picker starts at 1 --- tmux/.tmux.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 19507a7..e748dda 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,6 +1,5 @@ # set-option -g default-command "exec /usr/local/bin/bash --login" set-option -g status-style bg=default -bind s choose-tree -Zs -O name set-option -g status-position top # Number windows from 1 and close gaps when windows are removed @@ -14,8 +13,8 @@ set -g prefix C-space unbind-key C-b bind-key C-space send-prefix -# Sort the session picker by name -bind s choose-tree -Zs -O name +# Sort the session picker by name; shortcuts start at 1, then Alt-a after 9 +bind s choose-tree -Zs -O name -K '#{?#{e|<:#{line},9},#{e|+:#{line},1},#{?#{e|<:#{line},35},M-#{a:#{e|+:97,#{e|-:#{line},9}}},}}' # Set new panes to open in current directory bind c new-window -c "#{pane_current_path}"