From 8f0cee2e11ba640d9744860a88ac68d31f2eeef8 Mon Sep 17 00:00:00 2001 From: Ryan Dale <115406+daler@users.noreply.github.com> Date: Mon, 27 Jul 2026 17:53:50 -0400 Subject: [PATCH] update .tmux.conf with osc52-related settings --- .tmux.conf | 10 ++++++++++ docs/changelog.rst | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index 12f94eb..4ad9800 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -63,3 +63,13 @@ bind % split-window -h -c "#{pane_current_path}" unbind -T copy-mode-vi MouseDragEnd1Pane bind -T copy-mode-vi MouseDragEnd1Pane send -X stop-dragging-selection bind -T copy-mode-vi MouseDown1Pane select-pane \; send-keys -X clear-selection + +# Lets both tmux *and* applications inside (like nvim) to set the system +# clipboard. Older versions of tmux had this set to "on" by default, which +# changed to "external" in v2.6, at which time it blocked apps inside like +# nvim. So we set it back to "on". +set -s set-clipboard on + +# Only available starting in v3.2. Allows escape sequences, like OSC52, to be +# passed through which lets us set system clipboard. +set -g allow-passthrough on diff --git a/docs/changelog.rst b/docs/changelog.rst index 9918c9d..4424126 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,14 @@ Changelog ========= +2026-07-27 +---------- + +**tmux** + +Add ``set-clipboard on`` and ``allow-passthrough on`` in :file:`~/.tmux.conf` +to support OSC52 clipboard behavior within apps (like nvim) inside tmux. + 2026-06-26 ----------