Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabienarcellier/snip
very simple snippet manager
https://github.com/fabienarcellier/snip
Last synced: 25 days ago
JSON representation
very simple snippet manager
- Host: GitHub
- URL: https://github.com/fabienarcellier/snip
- Owner: FabienArcellier
- Created: 2015-08-17T09:29:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-10T09:43:01.000Z (about 9 years ago)
- Last Synced: 2023-03-10T21:48:03.759Z (almost 2 years ago)
- Language: Python
- Size: 160 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Installation
=============Clone this repository
git clone [email protected]:FabienArcellier/snip.git
Install on ubuntu/debian.
sudo make install
If bash_completion is installed, it will install autocomplete scripts
in /etc/bash_completion.dUsage
======# Save the content of clipboard in
# snippet python-test-class
snip save python-test-class# List all the snippets
snip list# List the snippets that begin by python
snip list python# List and display snippets that begin by python
snip list --display python# Copy the content of snippet python-test-class
# in clipboard
snip get python-test-class# Display a specific snippet
snip display python-test-class# Edit a snippet
snip edit python-test-classsnip remove python-test-class
Every snippets is stored in your home directory in .snip.
You can store this directory in git.Use alias with autocomplete
----------------------------alias ss='snip save'
alias sg='snip get'
alias sd='snip display'
alias sl='snip list'complete -F _snip_complete_ ss
complete -F _snip_complete_ sg
complete -F _snip_complete_ sd
complete -F _snip_complete_ slBe careful with your instanciation order in bashrc. On ubuntu,
bash_aliases is sourced before bash_completion. It won't work in this
case.Setup libraries to develop
==========================# Install requirements.txt
make bootstrapTo validate your code :
# Execute pylint
make lint# Execute unit test
make testsTo build a release package:
make release