m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 16:45:38 -05:00

buku fzfmenu - forgot xdg-open, fixed.

MahouShoujoMivutilde
2020-10-15 16:04:25 +03:00
parent b35e3e3264
commit 04a4f6ee74

@@ -1408,7 +1408,7 @@ fb() {
```sh
#!/usr/bin/env bash
# fb - buku bookmarks fzfmenu opener
buku -p -f 4 |
awk -F $'\t' '{
if ($4 == "")
@@ -1417,12 +1417,21 @@ buku -p -f 4 |
printf "%s \t\x1b[38;5;124m%s \t\x1b[38;5;208m%s\033[0m\n", $2, $4, $3
}' |
fzfmenu --ansi -d $'\t' --with-nth=2,3 \
--preview-window='bottom:10%' --preview 'printf "\x1b[38;5;117m%s\033[0m\n" {1}'
--preview-window='bottom:10%' --preview 'printf "\x1b[38;5;117m%s\033[0m\n" {1}' |
awk '{print $1}' | xargs -d '\n' -I{} -n1 -r xdg-open '{}'
```
Now you can bind on some key, e.g. with [sxhkd](https://github.com/baskerville/sxhkd) in sxhkdrc:
```
super + shift + u
fb
```
![demo](https://i.imgur.com/Vc3GKhW.png)
### i3
Fuzzy search desktop entries and launch the appropriate application.
```