Metadata-Version: 2.1
Name: codesnip
Version: 1.0.6
Summary: A small program for storing and managing your code snippets.
Home-page: https://github.com/sarveshbhatnagar/codesnip
Author: Sarvesh Bhatnagar
Author-email: sarveshbhatnagar08@gmail.com
License: MIT
Keywords: snippet management code save
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: pyperclip

# Why CodeSnip
Its completely free, open source package which helps you while you code.
It is used to save code snippets in one place and you can access them any time using your terminal/command prompt. 

## Usage

Suppose I have a function which is used to retrieve items from our database and I use that a lot.

function xyz(){
    ...
    ...
}

In such a scenario, I will copy the function and in my terminal

### To save
I will write: codesnip -s "database retrieve items firebase"
This code will save the function you copied. It creates a folder named as database which contains snippets you saved for working on database. 

### If you want to fetch your function
codesnip -f "database retrieve" or codesnip -f "database firebase" or any combination of keys you passed. (NOTE folder name should always be present, in this case its database). This command copies the function to your clipboard, and if multiple functions are found, displays their keys on the terminal to choose from.

### Print existing folders
codesnip -p

### Print all the items in a folder
codesnip -f "database" (KEEP IN MIND, database is folder we created. It can be named anything and you can have any number of folders. This is just used for the sake of example.)

### Export our codesnippets for others
codesnip -e
(Exports to current working directory)

### Import from current working directory
codesnip -ic
(NOTE DO NOT CHANGE NAME OF CODESNIP DATA FILE. IT SHOULD BE OF SAME NAME AS IT WAS WHEN EXPORTED.)

ALSO, when updating package you have to export the data file and then update. After update is complete you need to import the data file again.

### To delete any code snippet in your folder
codesnip -d "database retrieve"

