From 189ebfdabddd36c3450299ffb551b94b5d7626c6 Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 17 May 2025 15:17:26 +0200 Subject: [PATCH] fixes --- tmux.conf | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tmux.conf b/tmux.conf index 5e9793a..cc5f4c3 100644 --- a/tmux.conf +++ b/tmux.conf @@ -13,6 +13,17 @@ set -g mouse on # Set the prefix key to C-Space instead of default C-b unbind C-b +unbind C-1 +unbind C-2 +unbind C-3 +unbind C-4 +unbind C-5 +unbind C-6 +unbind C-7 +unbind C-8 +unbind C-9 +unbind C-0 + # ─< set the prefix to "C-Space" >──────────────────────────────────────────────────────── set -g prefix C-Space bind C-Space send-prefix @@ -21,6 +32,17 @@ bind h copy-mode set -g visual-activity on set -g visual-bell on set -g status-keys vi + +bind-key -n C-1 select-window -t :1 +bind-key -n C-1 select-window -t :2 +bind-key -n C-3 select-window -t :3 +bind-key -n C-4 select-window -t :4 +bind-key -n C-5 select-window -t :5 +bind-key -n C-1 select-window -t :6 +bind-key -n C-7 select-window -t :7 +bind-key -n C-8 select-window -t :8 +bind-key -n C-9 select-window -t :9 + # ─< set v for starting selection in copy mode >────────────────────────────────────────── bind -T copy-mode-vi v send -X begin-selection @@ -32,7 +54,6 @@ bind -n C-h select-pane -L bind -n C-l select-pane -R bind -n C-f resize-pane -Z - # Ensure that when prefix is pressed, the mode indicator is shown set -g mode-keys vi # Use vi keybindings in copy mode set -g status-left-length 30 # Limit length of the left status line