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}"