scripts/misc/tmux-url-fuzz

6 lines
175 B
Plaintext
Raw Normal View History

2019-09-30 12:49:14 +00:00
#!/bin/zsh
target=$(tmux capture-pane -e -p -J -S -20 \
| grep -oP "(https?://|www\.)[^\"<>') \e]*" \
| ifne fzf-tmux --tac)
if [[ -n $target ]]; then xdg-open $target; fi