| Crates.io | snipman |
| lib.rs | snipman |
| version | 0.2.2 |
| created_at | 2025-09-05 11:12:15.549515+00 |
| updated_at | 2025-09-13 14:15:50.246492+00 |
| description | A fast and simple TUI-based code snippet manager. |
| homepage | https://github.com/arshia-rgh/snipman |
| repository | https://github.com/arshia-rgh/snipman |
| max_upload_size | |
| id | 1825360 |
| size | 90,928 |
SnipMan is a simple, fast, and intuitive command-line snippet manager built with Rust. It lets you save, search, and manage code snippets right from your terminal.
Pick one of the following:
Using Cargo (Rust toolchain):
cargo install snipman
Prebuilt binaries (GitHub Releases):
curl -LO https://github.com/arshia-rgh/snipman/releases/latest/download/snipman-x86_64-unknown-linux-gnu.tar.gz
tar xzf snipman-x86_64-unknown-linux-gnu.tar.gz
sudo mv snipman-x86_64-unknown-linux-gnu /usr/local/bin/snipman
curl -LO https://github.com/arshia-rgh/snipman/releases/latest/download/snipman-x86_64-apple-darwin.tar.gz
tar xzf snipman-x86_64-apple-darwin.tar.gz
sudo mv snipman-x86_64-apple-darwin /usr/local/bin/snipman
snipman.exe, and place it in a folder on your PATH (e.g., %USERPROFILE%\bin).Before using other commands, run the installer to set up manual pages and shell completions. Other commands are gated until this completes.
snipman install
Notes:
man snipmansnipman install.Options:
snipman install --shell auto # default; detect $SHELL, else install for bash,zsh,fish
snipman install --shell bash
snipman install --shell zsh
snipman install --shell fish
snipman install --shell all
snipman install --no-modify-rc
By default on Zsh, SnipMan appends a small idempotent block to your ~/.zshrc (or $ZDOTDIR/.zshrc) to add the completion path and run compinit.Where things go (Unix):
~/.local/share/man/man1/snipman.1 (then mandb -q is attempted quietly)~/.local/share/bash-completion/completions/snipman~/.local/share/zsh/site-functions/_snipman (name decided by clap_complete)~/.config/fish/completions/snipman.fishNote: ensure you ran snipman install first (see above).
Show help:
snipman --help
Create a new snippet. Provide the code body via one of: --code, --file, --stdin, or --editor.
Precedence (if multiple are provided): --code > --file > --stdin > --editor.
snipman add -d "Open file" -t fs,io --code 'std::fs::read_to_string("path")?;'
snipman add -d "HTTP GET" -t http,req --file examples/get.rs
cat snippet.rs | snipman add -d "Read file" -t fs --stdin
export VISUAL="code -w"; falls back to nano/vi on Unix,
Notepad on Windows):
snipman add -d "Regex replace" -t text,regex --editor
Flags:
Print all snippets.
snipman list
Remove a snippet by its description (as shown in list).
snipman remove --description "Open file"
# or
snipman remove -d "Open file"
Open the interactive picker with fuzzy search, preview, copy, and delete.
snipman interactive
Key bindings:
MIT. See LICENSE.