git clone [email protected]:ONordander/sget.git
cd sget
pip install .
# Add a snippet
sget add "grep -r sget"
# Add many snippets from a .toml file
curl https://raw.githubusercontent.com/ONordander/snippets/master/unix.toml -o unix.toml
sget install unix.toml
# Get a snippet from search prompt
sget
# Get a snippet by name
sget get grep_sget
# Remove snippet by name (leaving the name blank will start a search prompt)
sget rm grep_sget
# List all snippets (with optional group)
sget list -g unix
# Clear all snippets
sget clear
nnoremap <expr> <Leader>s ":!sget get<Space>" . input("Snippet name (leave blank to search): ") . "<CR>"