m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 00:53:42 -05:00

fzfmenu for buku (example usage)

MahouShoujoMivutilde
2020-10-14 15:46:43 +03:00
parent 70b9b8d768
commit ca9c39de30

@@ -1404,6 +1404,25 @@ fb() {
}
```
...And a nicer looking alternative, using [fzfmenu](#fzf-as-dmenu-replacement).
```sh
#!/usr/bin/env bash
buku -p -f 4 |
awk -F $'\t' '{
if ($4 == "")
printf "%s \t\x1b[38;5;208m%s\033[0m\n", $2, $3
else
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}'
```
![demo](https://i.imgur.com/Vc3GKhW.png)
### i3
Fuzzy search desktop entries and launch the appropriate application.
```
@@ -1486,6 +1505,8 @@ All arguments are passed to fzf.
Don't forget to add a float/center rule for `fzfmenu` class/name to your wm's config.
[Example usage](#buku).
### dotfiles management
[dotbare](https://github.com/kazhala/dotbare) is a command-line utility to help