aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-07-05 23:33:37 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-07-05 23:33:37 +0200
commit2f95b8770c18091e1d43635fb839d908c74356c5 (patch)
tree348c2aa84bf6843ca950027de494c159437599da
parentd87c22be1700e064d15b0cd1de19a3c65d376261 (diff)
downloadsebastiano.tronto.net-2f95b8770c18091e1d43635fb839d908c74356c5.tar.gz
sebastiano.tronto.net-2f95b8770c18091e1d43635fb839d908c74356c5.zip
Update to blog post
-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