feat(tmux): enable extended keys so TUIs receive modified keys

omo and nvim need Shift+Enter and other modified keys, which tmux
otherwise reports as plain Enter. Use CSI-u extended keys, as omo's
tmux guide recommends for tmux 3.5 and newer.
This commit is contained in:
David Ibia
2026-10-06 23:02:29 +01:00
parent 81e5c6be67
commit 164dffc5eb
+4
View File
@@ -1,6 +1,10 @@
set -g mouse on
bind r source-file ~/.tmux.conf
set-option -a terminal-features 'xterm*:RGB'
# Extended keys so TUIs (omo, nvim) receive Shift+Enter and other modified keys
set -g extended-keys on
set -g extended-keys-format csi-u
set-option -a terminal-features 'xterm*:extkeys'
set-option -sg escape-time 10
set-option -g focus-events on
set-window-option -g mode-keys vi