From 36a8248ef3bd82d24e86e3aa8e48be8dfffa4f12 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 10 Apr 2024 17:35:03 +0200 Subject: [PATCH] tmux: revert back to window-switching for simplicity and speed --- .tmux.conf | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 7f504be..289499c 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -39,16 +39,16 @@ bind -n M-k copy-mode \; send-keys -X previous-prompt -o \; send-keys -X cursor- bind -n M-j copy-mode \; send-keys -X previous-prompt -o \; send-keys -X cursor-up bind -n M-Up select-pane -U bind -n M-Down select-pane -D -bind -n M-1 run-shell -b "tmux-shortcut 1 helix" -bind -n M-2 run-shell -b "tmux-shortcut 2" -bind -n M-3 run-shell -b "tmux-shortcut 3" -bind -n M-4 run-shell -b "tmux-shortcut 4" -bind -n M-5 run-shell -b "tmux-shortcut 5" -bind -n M-6 run-shell -b "tmux-shortcut 6" -bind -n M-7 run-shell -b "tmux-shortcut 7" -bind -n M-8 run-shell -b "tmux-shortcut 8" -bind -n M-9 run-shell -b "tmux-shortcut 9" -bind -n M-0 run-shell -b "tmux-shortcut 10" +bind -n M-1 select-window -t 42 +bind -n M-2 select-window -t 2 +bind -n M-3 select-window -t 3 +bind -n M-4 select-window -t 4 +bind -n M-5 select-window -t 5 +bind -n M-6 select-window -t 6 +bind -n M-7 select-window -t 7 +bind -n M-8 select-window -t 8 +bind -n M-9 select-window -t 9 +bind -n M-0 select-window -t 10 bind -n M-m send-keys -t 9 q C-u "clear; tmux clear-history -t 9" C-m C-p C-p C-p C-m bind C-o send-keys C-o @@ -64,10 +64,10 @@ bind-key -T copy-mode-vi WheelDownPane select-pane \; send-keys -X -N 1 scroll-d bind-key / copy-mode \; send-key ? bind-key P 'capture-pane' \; capture-pane -S - \; save-buffer /tmp/tmux \; delete-buffer bind-key -n C-\\ copy-mode \; send -X search-backward " % "\; send -X search-again -bind -n M-g display-popup -h '95%' -w '95%' -b rounded -d '#{?pane_path,#{pane_path},#{pane_current_path}}' -E "gitui" -bind -n M-e display-popup -h '95%' -w '95%' -y 0 -b rounded -S "fg=#77fecc" -s "fg=#99ccbb" -d '#{?pane_path,#{pane_path},#{pane_current_path}}' -e FZF=fzf -E "~/bin/tmux-edit-helper" -bind -n M-h display-popup -h '95%' -w '95%' -y 0 -b rounded -S "fg=#77fecc" -s "fg=#99ccbb" -d '#{?pane_path,#{pane_path},#{pane_current_path}}' -e FZF=fzf -E "~/bin/tmux-edit-history" -bind -n M-m display-popup -h '95%' -w '95%' -b rounded -S "fg=#77fecc" -s "fg=#99ccbb" -d '#{?pane_path,#{pane_path},#{pane_current_path}}' -E "~/bin/tmux-build-helper" +bind -n M-g display-popup -h '95%' -w '95%' -b rounded -d '#{pane_current_path}' -E "gitui" +bind -n M-e display-popup -h '95%' -w '95%' -y 0 -b rounded -S "fg=#77fecc" -s "fg=#99ccbb" -d '#{pane_current_path}' -e FZF=fzf -E "~/bin/tmux-edit-helper" +bind -n M-h display-popup -h '95%' -w '95%' -y 0 -b rounded -S "fg=#77fecc" -s "fg=#99ccbb" -d '#{pane_current_path}' -e FZF=fzf -E "~/bin/tmux-edit-history" +bind -n M-m display-popup -h '95%' -w '95%' -b rounded -S "fg=#77fecc" -s "fg=#99ccbb" -d '#{pane_current_path}' -E "~/bin/tmux-build-helper" setw -g window-status-format "" @@ -86,5 +86,14 @@ set -g set-titles on set -g set-titles-string "#H - #T" new -s0 -n 1 +new-window -n 2 +new-window -n 3 +new-window -n 4 +new-window -n 5 +new-window -n 6 +new-window -n 7 +new-window -n 8 +new-window -n 9 +new-window -n 0 # vim:set ft=tmux: