zsh-fzf-snippet

Manage command snippet with fzf

Stars
8

zsh-fzf-snippet

This zsh plugin provides manage command snippet with fzf.

Demo

Installation

Using zplugin

zinit light yuki-ycino/zsh-fzf-snippet

For Example

$ mkdir -p ~/.config/fzf-snippets
$ echo 'foo: foo command' > ~/.config/fzf-snippets/snippets
$ echo 'bar: bar command' >> ~/.config/fzf-snippets/snippets
$ echo 'foo command description' > ~/.config/fzf-snippets/foo
$ echo 'bar command description' > ~/.config/fzf-snippets/bar

Press Ctrl-x Ctrl-s to open fzf and select snippet. Press ctrl-e to open the description file in the editor