📎 Snippy
🌟 Overview
Snippy is a command-line tool for copying code snippets to the clipboard with optional formatting features. It's designed to make sharing code easier and more efficient, with special features for working with Large Language Models. ✨
🚀 Features
- 📋 Copy multiple files to clipboard
- 🖌️ Optional markdown code block formatting
- 🔢 Customizable line numbering
- 👀 Clipboard watching mode for real-time processing
- 🤖 Seamless integration with LLM outputs
- 🖥️ Cross-platform support (Windows, macOS, Linux)
💻 Installation
To install snippy, you need to have Rust installed. Then you can install it using cargo:
🛠️ Usage
📚 Examples
-
Copy files to clipboard with default settings:
-
Copy files without markdown ticks:
-
Add line numbers with a custom prefix:
-
Watch clipboard for changes and process new content:
🔍 Clipboard Watching for LLM Integration
The watch command (watch) is particularly powerful when working with LLMs:
This mode continuously monitors your clipboard. When you copy output from an LLM, snippy automatically processes and applies the code to your workspace. 🪄
📜 License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request. 👍
💬 Support
If you encounter any problems or have any questions, please open an issue on the GitHub repository. We're here to help! 🆘
Happy coding with Snippy! 🎉