scripts/misc/tmux-url-fuzz
2020-04-02 10:38:36 +02:00

6 lines
175 B
Bash
Executable file

#!/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