sinbo-1.0.0 is not a library.
sinbo
sinbo is a CLI snippet manager. Store code once, retrieve it anywhere.
Installation
macOS / Linux
|
Windows
iwr https://raw.githubusercontent.com/opmr0/sinbo/main/install.ps1 -UseBasicParsing | iex
Via cargo
Quick Start
Setup
sinbo opens your $EDITOR when adding or editing snippets. Set it in your shell config:
# Vim
# Neovim
# Nano
# Helix
# VSCode (--wait is required)
# IntelliJ
# PyCharm
# Sublime Text
The temp file uses the --ext flag for syntax highlighting sinbo add my-snippet -e rs opens the editor with a .rs file so your editor formats the language syntax correctly.
Commands
sinbo add <name>
Add a new snippet. Opens your $EDITOR if no input is piped.
|
| Flag | Short | Description |
|---|---|---|
--ext |
-e |
File extension for syntax highlighting |
--file-name |
-f |
Read content from a file |
--tags |
-t |
Tag the snippet |
sinbo get <name>
Print or copy a snippet.
| Flag | Short | Description |
|---|---|---|
--copy |
-c |
Copy to clipboard |
sinbo list
List all saved snippets.
| Flag | Short | Description |
|---|---|---|
--tags |
-t |
Filter by tags |
--show |
-s |
SHow the snippets content |
sinbo edit <name>
Edit an existing snippet in your $EDITOR. Preserves the extension for syntax highlighting.
sinbo remove <name>
Delete a snippet.
Tags
Tags let you group and filter snippets:
How It Works
- Snippets are stored as plain files in your system config directory
- Each snippet has two files:
{name}.codefor content and{name}.meta.jsonfor tags and metadata - On Linux/macOS:
~/.config/sinbo/snippets/ - On Windows:
%APPDATA%\sinbo\snippets\ - Files are plain text, you can grep, copy, or back them up directly
License
MIT - LICENSE