From 3e8302a38e512eac57c889c9c8bf2e6957e3d964 Mon Sep 17 00:00:00 2001 From: thek4n Date: Mon, 8 Apr 2024 08:46:11 +0300 Subject: [PATCH] feat(tmux):mappings --- home/user/.config/tmux/mappings.conf | 4 ++++ 1 file changed, 4 insertions(+) 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'"