commit 7429e2d6623e9ec3333c71ad8073530acf63fa43
parent eaac4993a0e8a0e9a9445c4037e7e2ce081076fb
Author: Chris Bracken <chris@bracken.jp>
Date: Sun, 29 Jun 2025 15:52:19 -0700
tmux: improve comments
Diffstat:
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
@@ -6,13 +6,13 @@ set-option -as terminal-features ',xterm-256color:RGB' # 24-bit colour.
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl.
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underline.
-# Enable focus events if supported by the terminal.
+# Enable focus events, if supported by the terminal.
set-option -g focus-events on
-# Enable mouse.
+# Enable mouse focus, scroll, selection.
set-option -g mouse on
-# Automatically renumber windows on close.
+# Automatically renumber windows when one is closed.
set-option -g base-index 1
set-window-option -g pane-base-index 1
set-window-option -g renumber-windows on
@@ -23,11 +23,11 @@ set-window-option -g automatic-rename off
# Highlight panes with activity in the status bar.
set-window-option -g monitor-activity on
-# Use current working directory when splitting windows.
+# Inherit the current working directory when splitting panes.
bind-key '"' split-window -c "#{pane_current_path}"
bind-key '%' split-window -h -c "#{pane_current_path}"
-# Movement key bindings.
+# Use vi-like movement keys.
set-window-option -g mode-keys vi
set-option -g status-keys vi
bind-key h select-pane -L
@@ -36,12 +36,12 @@ bind-key k select-pane -U
bind-key l select-pane -R
bind-key ? list-keys
-# Selection key bindings.
+# Use vi-like selection keys in copy mode.
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
bind-key -T copy-mode-vi 'r' send-keys -X rectangle-toggle
-# Clear screen and reset scroll buffer.
+# Bindings: Clear screen and reset the scroll buffer.
bind-key b send-keys -R C-l\; clear-history
# Use arrow keys to resize panes.
@@ -61,5 +61,5 @@ bind-key -r Space select-layout even-horizontal
bind-key ^ split-window -h -c "#{pane_current_path}"\; split-window -v -c "#{pane_current_path}"\; select-pane -U\; select-pane -L
bind-key \\ split-window -h -c "#{pane_current_path}"\; split-window -h -c "#{pane_current_path}"\; select-layout even-horizontal\; select-pane -L
-# Solarized Osaka colour scheme.
+# Use the Solarized Osaka colour scheme.
source ~/.config/tmux/solarized-osaka_moon.tmux