~gpanders/dotfiles

ref: abb231735c332856b9f7659e194a3ff12ce02003 dotfiles/.config/fish/functions/buku.fish -rw-r--r-- 523 bytes
abb23173Greg Anders vim: async: add abort attribute to autoloaded functions 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function buku --description "Alias for buku --suggest. If no argument given, fuzzy find all bookmarks"
    set -q BUKU_COLORS; or set -Ux BUKU_COLORS "gCdxe"
    if test (count $argv) -eq 0; and command -sq fzf
        set -l website (buku --print --format 5 | column -ts'$'\t | fzf -m --with-nth 2..)

        for i in $website
            set -l index (echo "$i" | awk '{print $1}')
            buku --print "$index"
            buku --open "$index"
        end
    else
        command buku --suggest $argv
    end
end