mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 16:45:38 -05:00
buku fzfmenu - forgot xdg-open, fixed.
13
Examples.md
13
Examples.md
@@ -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
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
### i3
|
||||
Fuzzy search desktop entries and launch the appropriate application.
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user