Skip to main content

A simple snippet manager.

Project description

SGET

asciicast

INSTALL WITH AND PIP

pip install sget

INSTALL WITH GIT AND PIP

git clone git@github.com:ONordander/sget.git
cd sget
pip install .

QUICKSTART

# Add a snippet
sget add "grep -r sget"

# Add a snippet template with <$>, will prompt for a value at <$>.
sget add "scp sget@192.168.0.10:<$> ."

# Add many snippets from a .toml file
curl https://raw.githubusercontent.com/ONordander/snippets/master/unix.toml -o unix.toml
sget install unix.toml

# Run a snippet from search prompt
sget

# Run a snippet by name
sget run 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

Vim integration

nnoremap <expr> <Leader>s ":!sget cp<Space>" . input("Snippet name (leave blank to search): ") . "<CR>"

Project details


Release history Release notifications

This version

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sget, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size sget-0.1.0-py2.py3-none-any.whl (15.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size sget-0.1.0.tar.gz (10.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page