#!/bin/sh -e

tmux capture-pane -J -p \
  | grep -Eo '(https?|ftp|file):/?//[-A-Za-z0-9+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]' \
  | sort -u | fzf --multi --prompt "Select URL: " --select-1 | xargs open
