mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 00:53:42 -05:00
fzfmenu for buku (example usage)
21
Examples.md
21
Examples.md
@@ -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}'
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
### i3
|
### i3
|
||||||
Fuzzy search desktop entries and launch the appropriate application.
|
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.
|
Don't forget to add a float/center rule for `fzfmenu` class/name to your wm's config.
|
||||||
|
|
||||||
|
[Example usage](#buku).
|
||||||
|
|
||||||
### dotfiles management
|
### dotfiles management
|
||||||
|
|
||||||
[dotbare](https://github.com/kazhala/dotbare) is a command-line utility to help
|
[dotbare](https://github.com/kazhala/dotbare) is a command-line utility to help
|
||||||
|
|||||||
Reference in New Issue
Block a user