This commit is contained in:
pika 2025-05-17 15:17:26 +02:00
parent 20b4d02267
commit 189ebfdabd

View file

@ -13,6 +13,17 @@ set -g mouse on
# Set the prefix key to C-Space instead of default C-b # Set the prefix key to C-Space instead of default C-b
unbind 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 the prefix to "C-Space" >────────────────────────────────────────────────────────
set -g prefix C-Space set -g prefix C-Space
bind C-Space send-prefix bind C-Space send-prefix
@ -21,6 +32,17 @@ bind h copy-mode
set -g visual-activity on set -g visual-activity on
set -g visual-bell on set -g visual-bell on
set -g status-keys vi 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 >────────────────────────────────────────── # ─< set v for starting selection in copy mode >──────────────────────────────────────────
bind -T copy-mode-vi v send -X begin-selection 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-l select-pane -R
bind -n C-f resize-pane -Z bind -n C-f resize-pane -Z
# Ensure that when prefix is pressed, the mode indicator is shown # Ensure that when prefix is pressed, the mode indicator is shown
set -g mode-keys vi # Use vi keybindings in copy mode set -g mode-keys vi # Use vi keybindings in copy mode
set -g status-left-length 30 # Limit length of the left status line set -g status-left-length 30 # Limit length of the left status line