diff --git a/Examples.md b/Examples.md index c7caceb..7296cb1 100644 --- a/Examples.md +++ b/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}' +``` + +![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