summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Soarez <igor@soarez.org>2026-10-27 11:07:27 +0200
committerIgor Soarez <igor@soarez.org>2026-10-27 11:07:27 +0200
commit1613e5d0316af273f050f60c12f0b4726051b70a (patch)
treec35db3e908668a9d01ab50c3f72ade4c119e8a94
parent65d3da052dcecba82f05e4244f33c3f489b575c5 (diff)
tmux: advertise OSC 8 hyperlinks so pi and other TUIs link under tmux
-rw-r--r--config/tmux.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/tmux.conf b/config/tmux.conf
index 9a264bd..32fe7f7 100644
--- a/config/tmux.conf
+++ b/config/tmux.conf
@@ -101,6 +101,15 @@ set -ag terminal-overrides ",$TERM:Tc"
# the only lever we have on flicker under tmux.)
set -ag terminal-features ",*:sync"
+# Advertise OSC 8 hyperlink support so tmux re-emits (rather than strips)
+# hyperlinks from TUIs inside it. tmux only advertises the feature to inner
+# apps -- via #{client_termfeatures}, which pi probes at startup -- when the
+# feature is listed here. Test: `tmux display-message -p
+# '#{client_termfeatures}'` should list `hyperlinks`, then restart pi.
+# Clicking: Ghostty/Alacritty open links on a modifier-chord click (e.g.
+# Cmd/Ctrl depending on capture); a plain click is selection, by design.
+set -ag terminal-features ",*:hyperlinks"
+
# change selection color