summaryrefslogtreecommitdiffstats
path: root/.local/bin/bukuopener
blob: c4667890b447bb3980f0a28b2834369e612fbd60 (plain)
1
2
3
4
5
6
7
#!/usr/bin/env sh

url=$(buku -p -f4 | fzf -m --reverse --preview "buku --nostdin -p {1}" --preview-window=wrap | cut -f2)

if [ -n "$url" ]; then
    printf '%s\n' "$url" | xargs -L1 xdg-open
fi