diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index ae706dc..745f5cd 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -17,6 +17,10 @@ bind -T off F12 \ set status on +# Choose session with key index starting from 1 +bind-key s choose-tree -ZsK '#{?#{e|<:#{line},9},#{e|+:1,#{line}},#{?#{e|<:#{line},35},M-#{a:#{e|+:97,#{e|-:#{line},9}}},}}' + + # Switch new named session bind n command-prompt -p "New session:" "new-session -A -d -s '%1' \; switch-client -t '%1'"