sebastiano.tronto.net

Source files and build scripts for my personal website
git clone https://git.tronto.net/sebastiano.tronto.net
Download | Log | Files | Refs | README

commit 2f95b8770c18091e1d43635fb839d908c74356c5
parent d87c22be1700e064d15b0cd1de19a3c65d376261
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Sun,  5 Jul 2026 23:33:37 +0200

Update to blog post

Diffstat:
Msrc/blog/2026-06-28-tmux-open-urls/tmux-open-urls.md | 24++++++++++++++++++++++++
1 file 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 @@ -52,3 +52,27 @@ If a URL is broken into multiple lines, my `urlgrep` script is only going to select it until the end of the first line, so you won't be able to open it correctly with this configuration. However, I found this to be a common issue in many terminal emulators. + +## Update 2026-07-05 + +Shortly after this post was published, a reader emailed me his modified +version of the binding: + +``` +bind u { + capture-pane -J + display-popup -w 80% -T "Select URL to open" -E "tmux show-buffer | urlview" +} +``` + +This taught me three things: + +1. `urlview` can replace my custom combo of scripts - cool! But I kinda like + my scripts, I think I'll keep using them. +2. Using `display-popup` to show a "window" inside the tmux session. This can + be useful e.g. if one is not running a graphical session at all. I can + use it together with the `-m fzf` option for my `dmenu-urlselect`. +3. The `-J` option for `capture-pane` to preserve trailing spaces and join + any wrapped lines. This may solve the caveat I mentioned above! + +Thanks Johannes!