mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
buku integration
20
Examples.md
20
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)
|
* [Search for academic pdfs by author, title, keywords, abstract](#search-for-academic-pdfs-by-author-title-journal-institution)
|
||||||
* [BibTeX](#bibtex)
|
* [BibTeX](#bibtex)
|
||||||
* [Docker](#docker)
|
* [Docker](#docker)
|
||||||
|
* [buku](#buku)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1180,4 +1181,21 @@ function ds() {
|
|||||||
cid=$(docker ps | sed 1d | fzf -q "$1" | awk '{print $1}')
|
cid=$(docker ps | sed 1d | fzf -q "$1" | awk '{print $1}')
|
||||||
|
|
||||||
[ -n "$cid" ] && docker stop "$cid"
|
[ -n "$cid" ] && docker stop "$cid"
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 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
|
||||||
|
}
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user