Fix tmux editable slots

This commit is contained in:
2026-07-16 09:41:24 +02:00
parent 8ff042a7db
commit 0e746cbaec
3 changed files with 7 additions and 6 deletions
+1
View File
@@ -54,6 +54,7 @@
".local/share/flatpak"
".local/share/waydroid"
".local/share/bottles"
".local/share/tmux-sessionizer"
".var"
".kube"
".cache/flatpak"
+1 -1
View File
@@ -12,7 +12,7 @@ case "$1" in
if [[ -s "$slot_file" ]]; then
selected=$(<"$slot_file")
else
tmux display-message "tmux-sessionizer: slot '$2' is unbound (use prefix + C-${2^^} to set it)"
tmux display-message "tmux-sessionizer: slot '$2' is unbound (use prefix + C-a then '$2' to set it)"
exit 0
fi
;;
+5 -5
View File
@@ -54,11 +54,11 @@
bind-key C-t run-shell "tmux-sessionizer --slot t"
bind-key C-s run-shell "tmux-sessionizer --slot s"
bind-key C-n run-shell "tmux-sessionizer --slot n"
# Bind a slot: pick a project via fzf, then C-<key> jumps to it.
bind-key C-H run-shell "tmux neww tmux-sessionizer --set h"
bind-key C-T run-shell "tmux neww tmux-sessionizer --set t"
bind-key C-S run-shell "tmux neww tmux-sessionizer --set s"
bind-key C-N run-shell "tmux neww tmux-sessionizer --set n"
bind-key C-a switch-client -T setslot
bind-key -T setslot h run-shell "tmux neww tmux-sessionizer --set h"
bind-key -T setslot t run-shell "tmux neww tmux-sessionizer --set t"
bind-key -T setslot s run-shell "tmux neww tmux-sessionizer --set s"
bind-key -T setslot n run-shell "tmux neww tmux-sessionizer --set n"
# suspend inner tmux (to allow nested sessions)
bind @ { set prefix None; set key-table off }