A simple CLI utility to manage snippet
This repository has been archived on 2026-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Dandaedre 92b3ccf730 Adds basic coverage, corrects tests and correct bad function for Edit & edit 2023-05-22 03:08:12 +02:00
coverage/html/badges Adds basic coverage, corrects tests and correct bad function for Edit & edit 2023-05-22 03:08:12 +02:00
src Adds basic coverage, corrects tests and correct bad function for Edit & edit 2023-05-22 03:08:12 +02:00
.gitignore Adds basic coverage, corrects tests and correct bad function for Edit & edit 2023-05-22 03:08:12 +02:00
Cargo.toml Adds support for test on editions, adds edit_whole 2023-05-21 23:36:22 +02:00
LICENSE Initial commit 2023-05-17 11:57:33 +02:00
Makefile.toml Adds basic coverage, corrects tests and correct bad function for Edit & edit 2023-05-22 03:08:12 +02:00
README.md Adds basic coverage, corrects tests and correct bad function for Edit & edit 2023-05-22 03:08:12 +02:00
TODO.md Adds basic coverage, corrects tests and correct bad function for Edit & edit 2023-05-22 03:08:12 +02:00

README.md

snp

coverage/html/badges/flat.svg drawing

A simple cli utility to manage snippets, while it was created to be used with Helix, it can work with any tool integrating input from stdout

Usage

To create a new snippet and edit it immediately
$ snp snippet_name -c -e list of default tokens

To edit the content of a snippet
$ snp snippet_name -e

To edit the whole snippet (allow for editing of name and list of args)
$ snp snippet_name -E

To delete a snippet
$ snp snippet_name -d

To use a snippet
$ snp snippet_name