From 1e3f730ce9591e1d62e90e611a5c79b18c491364 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Tue, 8 Apr 2025 09:47:16 +0100 Subject: [PATCH] tmux: continuing tweaks --- tmux.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tmux.conf b/tmux.conf index 25d3bfd..befd332 100644 --- a/tmux.conf +++ b/tmux.conf @@ -4,6 +4,10 @@ set -g prefix C-b # But give us a way to send it through if necessary. bind C-b send-prefix +# Fix home/end (in particular in Emacs); see https://stackoverflow.com/a/55616731 +bind-key -n Home send Escape "OH" +bind-key -n End send Escape "OF" + # Start window numbering at 1, not 0. set -g base-index 1 @@ -44,6 +48,13 @@ bind -r J resize-pane -D 5 bind -r K resize-pane -U 5 bind -r L resize-pane -R 5 +# Enable vi keys for moving around +set -w -g mode-keys vi + +# To go with that, make 'v' start visual selection and 'y' copy the selection. +bind -T copy-mode-vi v send -X begin-selection +bind -T copy-mode-vi y send -X copy-selection + # I'm not a keyboard fanatic; enable the mouse. set -g mouse on @@ -61,6 +72,15 @@ set -g pane-border-indicators arrows # Give the panes their own status indicator. set -g pane-border-status top +# Centre the window List +set -g status-justify centre + +# Automatically renumber windows if we move them around. +set -g renumber-windows on + +# Let me know if something's happened +# set -w -g monitor-activity on + # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible'