Skip to content
/ sget Public

A snippet manager written in Python

License

Notifications You must be signed in to change notification settings

svaante/sget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SGET

asciicast

INSTALL

git clone [email protected]:ONordander/sget.git
cd sget
pip install .

USAGE

# 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

Vim integration

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

About

A snippet manager written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages