More examples to use fuzzy search

This commit is contained in:
Arun Prakash Jana 2020-12-07 20:59:54 +05:30
parent 11e8c6bbda
commit d4c9b89b6e
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -296,9 +296,22 @@ PROMPT KEYS:
b -p
6. For GUI and browser integration (or to sync bookmarks with your favourite bookmark management service) refer to the wiki page on [System integration](https://github.com/jarun/buku/wiki/System-integration).
7. Handy (bash/zsh) command to fuzzy search all URLs and open the selected one in Firefox:
7. Handy (bash/zsh) commands to fuzzy search all URLs and open the selected one in Firefox:
firefox $(buku -p -f 10 | fzf)
firefox $(buku -p -f 40 | fzf | cut -f1)
POSIX script to allow cancellation as well:
```sh
#!/usr/bin/env sh
url=$(buku -p -f 40 | fzf | cut -f1)
if [ -n "$url" ]; then
firefox "$url"
fi
```
### Examples