Extract and open URLs from your tmux pane with a beautiful interactive picker powered by gum.
Add this plugin to your ~/.tmux.conf:
set -g @plugin 'tmux-contrib/tmux-url'And install it by running <prefix> + I.
| Key Binding | Action |
|---|---|
Prefix + u |
Open URL picker for current pane |
Workflow:
- Press
Prefix + u(default:Ctrl+bthenu) - Select a URL from the interactive list using arrow keys
- Press
Enterto open in your default browser - Press
Escto cancel
Add these options to your ~/.tmux.conf before loading the plugin:
# Custom key binding (default: u)
set -g @url-key 'o'
# URL detection mode (default: strict)
set -g @url-detection-mode strict # Only URLs with explicit schemes
set -g @url-detection-mode relaxed # Include bare domains
# Buffer scan depth (default: 10000)
set -g @url-buffer-lines 5000| Option | Default | Description |
|---|---|---|
@url-key |
"u" |
Key binding for URL picker |
@url-detection-mode |
"strict" |
URL detection mode (strict or relaxed) |
@url-buffer-lines |
"10000" |
Lines to scan from pane history |
Strict mode (default):
- Detects:
https://github.com,ftp://example.com,mailto:user@example.com - Does NOT detect:
github.com,user@example.com(without scheme)
Relaxed mode:
- Detects all URLs from strict mode PLUS bare domains like
github.com
Install dependencies using Nix:
nix developOr install manually: bash, tmux, bats
bats tests/Enable trace output with the DEBUG environment variable:
DEBUG=1 /path/to/tmux-url/scripts/tmux_url.shMIT