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/flatpak"
".local/share/waydroid" ".local/share/waydroid"
".local/share/bottles" ".local/share/bottles"
".local/share/tmux-sessionizer"
".var" ".var"
".kube" ".kube"
".cache/flatpak" ".cache/flatpak"
+1 -1
View File
@@ -12,7 +12,7 @@ case "$1" in
if [[ -s "$slot_file" ]]; then if [[ -s "$slot_file" ]]; then
selected=$(<"$slot_file") selected=$(<"$slot_file")
else 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 exit 0
fi fi
;; ;;
+5 -5
View File
@@ -54,11 +54,11 @@
bind-key C-t run-shell "tmux-sessionizer --slot t" bind-key C-t run-shell "tmux-sessionizer --slot t"
bind-key C-s run-shell "tmux-sessionizer --slot s" bind-key C-s run-shell "tmux-sessionizer --slot s"
bind-key C-n run-shell "tmux-sessionizer --slot n" 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-a switch-client -T setslot
bind-key C-H run-shell "tmux neww tmux-sessionizer --set h" bind-key -T setslot h run-shell "tmux neww tmux-sessionizer --set h"
bind-key C-T run-shell "tmux neww tmux-sessionizer --set t" bind-key -T setslot t run-shell "tmux neww tmux-sessionizer --set t"
bind-key C-S run-shell "tmux neww tmux-sessionizer --set s" bind-key -T setslot s run-shell "tmux neww tmux-sessionizer --set s"
bind-key C-N run-shell "tmux neww tmux-sessionizer --set n" bind-key -T setslot n run-shell "tmux neww tmux-sessionizer --set n"
# suspend inner tmux (to allow nested sessions) # suspend inner tmux (to allow nested sessions)
bind @ { set prefix None; set key-table off } bind @ { set prefix None; set key-table off }