jarun / buku

:bookmark: Personal mini-web in text
GNU General Public License v3.0
6.52k stars 294 forks source link

Avoid delay while displaying title and tags #709

Closed 145818 closed 10 months ago

145818 commented 10 months ago

Not really related to the software as such, but in case anyone can help me with this.

I would like to display title and tags in fzf and then open the link, I achieve this like so:

CHOSEN_BOOKMARK="$(buku -p -f 5 | fzf | cut -f1)" ; [[ -z $CHOSEN_BOOKMARK ]] && exit 1 ; buku -o "$CHOSEN_BOOKMARK"

# Or same logic a bit simplified:

buku -o $(buku -p -f 5 | fzf | cut -f1)

It delays a bit however, probably because I call buku twice. I don't have this problem when using:

CHOSEN_BOOKMARK="$(buku -p -f 40 | fzf | cut -f1)" ; [[ -z $CHOSEN_BOOKMARK ]] && exit 1 ; "$BROWSER" "$CHOSEN_BOOKMARK" ; exit

Or same thing without the checks:

$BROWSER "$(buku -p -f 40 | fzf | cut -f1)"  

Anyway to achieve a quick launch of bookmark while displaying title and tags only or have it in the order title tag url?

LeXofLeviafan commented 10 months ago

Have you tried the example scripts in their wiki?

145818 commented 10 months ago

Have you tried the example scripts in their wiki?

Thanks, the fb function in that script is what I was looking for.