As a terminal user, I often find myself typing the same blocks of code, commands, or text snippets over and over. For years, I’ve relied on Snippy, a project I maintain and use daily. It’s a simple yet powerful snippet manager for Linux that integrates seamlessly with my favorite tools: rofi and fzf.
Why Snippy?
While there are many snippet managers out there, I wanted something that was lightweight, scriptable, and deeply integrated with the command line. Snippy is designed to be fast, efficient, and highly customizable, allowing you to manage your snippets without leaving the comfort of your terminal.
Key Features
Snippy comes with a host of features designed to make you more productive:
- Rofi and FZF Integration: Browse, search, and paste snippets using the powerful fuzzy finding capabilities of
rofiandfzf. - Clipboard and Cursor Control: Snippy can automatically restore your clipboard after pasting. You can also use placeholders like
{clipboard}to insert clipboard content into a snippet, and{cursor}to position the cursor exactly where you need it after pasting. - Script Execution: Turn your snippets into powerful scripts. Any line starting with a
$will be executed as a command. You can also place more complex bash scripts in the$snippets_directory/scriptsfolder. - Powerful CLI: While the GUI is great for browsing, Snippy also provides a full-featured command-line interface to
add,edit,list, orcatyour snippets. - Bash Completion: To make the CLI even easier to use, Snippy provides its own bash completion.
Installation
For Arch Linux users, Snippy is available on the AUR and can be installed with your favorite helper:
yay -S snippy-snippet
Basic Usage
Once installed, you can start using Snippy immediately.
snippy gui: Open therofiorfzfinterface to browse and select a snippet.snippy add: Add a new snippet from the command line.snippy edit: Edit an existing snippet.snippy cli: List snippets and copy them to the pasteboard without pasting.
For more details on all the available commands and options, be sure to check out the project’s GitHub page.
I hope you find Snippy as useful as I do. Give it a try and let me know what you think!