Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuki-yano/zsh-fzf-snippet
Manage command snippet with fzf
https://github.com/yuki-yano/zsh-fzf-snippet
Last synced: 2 months ago
JSON representation
Manage command snippet with fzf
- Host: GitHub
- URL: https://github.com/yuki-yano/zsh-fzf-snippet
- Owner: yuki-yano
- Created: 2020-03-02T12:15:07.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-01T13:12:55.000Z (over 4 years ago)
- Last Synced: 2023-08-06T06:43:05.723Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 8
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zsh-fzf-snippet
This zsh plugin provides manage command snippet with fzf.
## Demo
![zsh-fzf-snippet](https://user-images.githubusercontent.com/5423775/76139817-6344c180-6097-11ea-8e35-72a9b5940be7.gif "zsh-fzf-snippet")
## Installation
### Using [zplugin](https://github.com/b4b4r07/zplug)
```zsh
zinit light yuki-ycino/zsh-fzf-snippet
```## For Example
```zsh
$ 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