From f2e38aa1ebad9fa537ca119ffe705d40fc0c25fe Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 6 May 2026 09:32:43 +0200 Subject: [PATCH] Turn extended keys on for tmux So pi will stop complaining about it and so shift + return will just work --- config/tmux/tmux.conf | 3 +++ migrations/1778052575.sh | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 migrations/1778052575.sh diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 083abb63..de772031 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -70,6 +70,9 @@ set -g set-clipboard on set -g allow-passthrough on setw -g aggressive-resize on set -g detach-on-destroy off +set -g extended-keys on +set -g extended-keys-format csi-u +set -sg escape-time 10 # Status bar set -g status-position top diff --git a/migrations/1778052575.sh b/migrations/1778052575.sh new file mode 100644 index 00000000..fc6a46cf --- /dev/null +++ b/migrations/1778052575.sh @@ -0,0 +1,7 @@ +echo "Enable extended keyboard support in tmux" + +tmux_config="$HOME/.config/tmux/tmux.conf" + +if [[ -f $tmux_config ]] && ! grep -qxF "set -g extended-keys on" "$tmux_config"; then + sed -i '/^set -g detach-on-destroy off$/a set -g extended-keys on\nset -g extended-keys-format csi-u\nset -sg escape-time 10' "$tmux_config" +fi