better selection

This commit is contained in:
2026-06-23 14:20:40 +02:00
parent e01b3dde3e
commit 706689753e
+15
View File
@@ -3,6 +3,21 @@ set -g base-index 1
set -g pane-base-index 1 set -g pane-base-index 1
set-option -g status-position top set-option -g status-position top
set -g allow-passthrough on set -g allow-passthrough on
set -g extended-keys on
set -g extended-keys-format csi-u
# Copy mode: don't copy instantly on mouse-up. Releasing the drag keeps the
# selection and stays in copy mode; press y or Enter to actually copy, q/Esc to cancel.
set -g mode-keys vi
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X stop-selection
bind -T copy-mode MouseDragEnd1Pane send-keys -X stop-selection
bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind -T copy-mode-vi Enter send-keys -X copy-selection-and-cancel
bind -T copy-mode y send-keys -X copy-selection-and-cancel
bind -T copy-mode Enter send-keys -X copy-selection-and-cancel
# Subtler selection highlight (instead of the bright orange default)
set -g mode-style "bg=#504945,fg=default"
# Right side: date and time # Right side: date and time
set -g status-right "%Y-%m-%d | %H:%M" set -g status-right "%Y-%m-%d | %H:%M"