Skip to content

rawqubit/snippet-vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnippetVault 💾

A lightweight, local-first code snippet manager for developers. Store, organize, and retrieve your code snippets with powerful search and tagging capabilities.

Features ✨

  • Local Storage: All snippets stored locally in SQLite—no cloud, no tracking.
  • Tagging System: Organize snippets with custom tags for easy categorization.
  • Syntax Highlighting: Beautiful terminal display with syntax highlighting for multiple languages.
  • Fast Search: Search by title, content, or tags.
  • Export: Export all snippets to JSON for backup or sharing.
  • Rich Terminal UI: Clean, intuitive command-line interface.

Installation 🚀

  1. Clone the repository:
    git clone https://github.com/your-username/snippet-vault.git
    cd snippet-vault
  2. Install dependencies:
    pip install -r requirements.txt
  3. Make it executable:
    chmod +x main.py

Usage 🛠️

Add a snippet:

python main.py add --title "Python List Comprehension" --language python --tags "python,tips"

Search snippets:

python main.py search --query "list"
python main.py search --tag "python"

View a snippet:

python main.py view 1

Delete a snippet:

python main.py delete 1

Export all snippets:

python main.py export

Database Location

Snippets are stored at: ~/.snippet_vault/snippets.db

License 📄

MIT License

About

Local-first code snippet manager with tagging and search

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages