scripts/bin/tmux-url-fuzz
Alexander Gehrke cefd40b6dc Initial commit
2019-09-30 14:49:14 +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