From 28b7fe61896c163e343ef4b9dd28a714e314d40c Mon Sep 17 00:00:00 2001 From: Rane Brown Date: Fri, 1 Mar 2019 16:07:40 -0700 Subject: [PATCH] buku integration --- Examples.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Examples.md b/Examples.md index 6faacfa..7400d71 100644 --- a/Examples.md +++ b/Examples.md @@ -46,6 +46,7 @@ Table of Contents * [Search for academic pdfs by author, title, keywords, abstract](#search-for-academic-pdfs-by-author-title-journal-institution) * [BibTeX](#bibtex) * [Docker](#docker) +* [buku](#buku) @@ -1180,4 +1181,21 @@ function ds() { cid=$(docker ps | sed 1d | fzf -q "$1" | awk '{print $1}') [ -n "$cid" ] && docker stop "$cid" -} \ No newline at end of file +} +``` + +### buku +Search and open website bookmarks stored in a [buku](https://github.com/jarun/Buku) database. +```sh +fb() { + # save newline separated string into an array + mapfile -t website <<< "$(buku -p -f 5 | column -ts$'\t' | fzf --multi)" + + # open each website + for i in "${website[@]}"; do + index="$(echo "$i" | awk '{print $1}')" + buku -p "$index" + buku -o "$index" + done +} +``` \ No newline at end of file