Handle your snippets with Severus precision.
Snape follows the KISS principle β Keep It Simple, Severus π§.
- Minimal UI, instant access
- Zero learning curve: open, pick, done
- Plain text storage for easy syncing and versioning
- Integrates with your existing workflow, not the other way around
- No accounts, no cloud, no nonsense
brew install rgcr/formulae/snape
Use the install script to download, build, and install Snape:
curl -fsSL https://raw.githubusercontent.com/rgcr/snape/main/install.sh | bash
Install options:
./install.sh # Install to /usr/local/bin (requires sudo)
./install.sh --local # Install to ~/.local/bin (no sudo)
./install.sh --help # Show options
Requirements:
- Go 1.19 or later
- Git
git clone https://github.com/rgcr/snape.git
cd snape
go build -o snape
Snape works best when bound to a hotkey using your favorite keybinding tool.
Change the path to where
snape
is installed.
# In ~/.hammerspoon/init.lua:
hs.hotkey.bind({"cmd", "alt"}, "s", function()
hs.task.new("/usr/local/bin/snape", nil, nil, {}):start()
end)
# In ~/.config/skhd/skhdrc or ~/.skhdrc:
cmd + alt - s : /usr/local/bin/snape
# In ~/.i3/config:
bindsym $mod+s exec /usr/local/bin/snape
# In your autohotkey script
# ctrl + alt + s
^!s::Run C:\Path\to\snape.exe
- Alfred (macOS): Create a workflow to run
/usr/local/bin/snape
Launch Snape from terminal or hotkey:
snape # Default window size
snape --verbose # Verbose output
snape --width-size 350 --height-size 500 # Custom window size
snape --help # Show help
- ββ : Navigate
- Enter : Select snippet and copy
- a-z / A-Z : Quick index selection
- / : Enter filter mode
- ? : Show about dialog
- Esc : Quit
- Type : Filter by keyword
- Backspace : Delete last char
- ββ : Navigate filtered list
- Enter : Select snippet
- Esc : Exit filter mode
Snippets live in: ~/.snape/
Each file = one snippet.
Example:
~/.snape/
βββ hello.txt
βββ email-template.md
βββ sql-queries.sql
βββ git-commands.sh
hello.txt
β βHello, World!βgreeting.txt
β friendly greeting messagehello-world.go
β Hello World ingo
- Fork repo
- Create branch:
git checkout -b my-feature
- Commit:
git commit -m 'Add amazing feature'
- Push:
git push origin my-feature
- Open Pull Request
- Powered by Fyne
- Inspired by the template system of AutoHotkeyβs
CL3
utility