Add copy-mode-vi binding to open hyperlinks
Uses #{selection_hyperlink} to open OSC 8 hyperlinks directly,
falling back to xargs open for plain text selections.

Ref: https://github.com/tmux/tmux/issues/4075

Assisted-by: Claude Opus 4.6 via pi
change vvtvpuxkyysvrzuqwxlxxxzpoxnszszz
commit 337d0276c45ec90dbb9d23a9e7d385e8cf380b7f
author Alpha Chen <alpha@kejadlen.dev>
date
parent vwrqqzxy
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index 21eb1114..c3be854e 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -33,6 +33,8 @@ bind -T copy-mode-vi 'r' send -X rectangle-toggle
 bind -T copy-mode-vi 'y' send -X copy-pipe-and-cancel pbcopy
 bind -T copy-mode-vi 'H' send -X start-of-line
 bind -T copy-mode-vi 'L' send -X end-of-line
+bind -T copy-mode-vi o run-shell -C \
+  "if-shell -F '#{selection_hyperlink}' 'run-shell open #{selection_hyperlink}' 'send-keys -X copy-pipe-and-cancel \"xargs open\"'"
 
 # colors
 set -g pane-active-border-style "fg=brightred"