From 629ede5b5af20bb827b29bf6ec0611207f9bb267 Mon Sep 17 00:00:00 2001 From: joshuayuen99 Date: Sat, 4 Nov 2023 16:09:23 -0400 Subject: [PATCH] tmux: fix control-arrow keys --- private_dot_config/tmux/tmux.conf | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/private_dot_config/tmux/tmux.conf b/private_dot_config/tmux/tmux.conf index b279505..7f4d23c 100644 --- a/private_dot_config/tmux/tmux.conf +++ b/private_dot_config/tmux/tmux.conf @@ -65,15 +65,22 @@ setw -g clock-mode-colour cyan set -g message-style bg=brightblack,fg=cyan set -g message-command-style bg=brightblack,fg=cyan -# Fix colors -set-option -as terminal-overrides ",xterm*:Tc" - # Plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'tmux-plugins/tmux-prefix-highlight' +# Terminal +set-option -g default-terminal "xterm-256color" + +# Fix colors +set-option -as terminal-overrides ",xterm*:Tc" + +# Add control-arrow keys support +set -s extended-keys on +set -as terminal-features "xterm*:extkeys" + # Set vi-mode set-window-option -g mode-keys vi # Copy-paste keybindings