Append the terminal feature instead of just ovewrwritting the 3

This commit is contained in:
David Heinemeier Hansson
2026-07-12 07:38:10 -07:00
parent 5bba34d4d3
commit efcd780580
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ setw -g aggressive-resize on
set -g detach-on-destroy off
set -g extended-keys on
set -g extended-keys-format csi-u
set -g terminal-features[3] "xterm-kitty:extkeys"
set -ag terminal-features "xterm-kitty:extkeys"
set -sg escape-time 10
# Status bar
+2 -2
View File
@@ -7,8 +7,8 @@ if [[ -f $tmux_config ]]; then
sed -i '/^# Pane Controls$/a\bind -n M-Enter split-window -v -c "#{pane_current_path}"\nbind -n M-S-Enter split-window -h -c "#{pane_current_path}"\nbind -n M-Escape kill-pane\n' "$tmux_config"
fi
if ! grep -q "terminal-features" "$tmux_config"; then
sed -i '/^set -g extended-keys-format csi-u$/a\set -g terminal-features[3] "xterm-kitty:extkeys"' "$tmux_config"
if ! grep -q "xterm-kitty:extkeys" "$tmux_config"; then
sed -i '/^set -g extended-keys-format csi-u$/a\set -ag terminal-features "xterm-kitty:extkeys"' "$tmux_config"
fi
omarchy-restart-tmux