aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blog/2026-06-28-tmux-open-urls/tmux-open-urls.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/blog/2026-06-28-tmux-open-urls/tmux-open-urls.md b/src/blog/2026-06-28-tmux-open-urls/tmux-open-urls.md
index aaaf3a6..4547a5a 100644
--- a/src/blog/2026-06-28-tmux-open-urls/tmux-open-urls.md
+++ b/src/blog/2026-06-28-tmux-open-urls/tmux-open-urls.md
@@ -52,3 +52,27 @@ If a URL is broken into multiple lines, my `urlgrep` script is only going to
52select it until the end of the first line, so you won't be able to open 52select it until the end of the first line, so you won't be able to open
53it correctly with this configuration. However, I found this to be a common 53it correctly with this configuration. However, I found this to be a common
54issue in many terminal emulators. 54issue in many terminal emulators.
55
56## Update 2026-07-05
57
58Shortly after this post was published, a reader emailed me his modified
59version of the binding:
60
61```
62bind u {
63 capture-pane -J
64 display-popup -w 80% -T "Select URL to open" -E "tmux show-buffer | urlview"
65}
66```
67
68This taught me three things:
69
701. `urlview` can replace my custom combo of scripts - cool! But I kinda like
71 my scripts, I think I'll keep using them.
722. Using `display-popup` to show a "window" inside the tmux session. This can
73 be useful e.g. if one is not running a graphical session at all. I can
74 use it together with the `-m fzf` option for my `dmenu-urlselect`.
753. The `-J` option for `capture-pane` to preserve trailing spaces and join
76 any wrapped lines. This may solve the caveat I mentioned above!
77
78Thanks Johannes!

Generated with cgit - Back to sebastiano.tronto.net