mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Fix tmux editable slots
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -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 }
|
||||||
|
|||||||
Reference in New Issue
Block a user