| Crates.io | dial |
| lib.rs | dial |
| version | 0.1.1 |
| created_at | 2025-08-22 20:08:01.987761+00 |
| updated_at | 2025-08-22 20:18:28.059377+00 |
| description | A terminal-based code snippet manager and viewer built with ratatui. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1806849 |
| size | 71,628 |
Dial is a code snippet manager built using rust and ratatui.
Terminal-First Workflow: Manage all your code snippets without leaving the command line.
Search & Syntax Highlighting: Quickly find the code you need and review it with clear syntax highlighting.
Responsive Text Editing: Make quick modifications using a gap buffer based editor.
Cross-Platform: Runs on Linux, macOS, and Windows, storing data in the appropriate system-native directories.
To get started with Dial, you need to have the Rust toolchain installed on your system.
Clone the repository:
git clone https://github.com/mouhamadalmounayar/dial.git
Navigate into the project directory:
cd dial
Build and run the application:
cargo run
The application will automatically create a configuration directory and a snippets.json file if they don't exist.
Dial stores its data in a simple JSON file located in your system's standard config directory.
~/.config/dial/snippets.json~/Library/Application Support/com.mouhamadalmounayar.dial/snippets.jsonC:\Users\{YourUser}\AppData\Roaming\mouhamadalmounayar\dial\data\snippets.jsonYou can manually add or edit snippets in this file. The expected format for each snippet is:
[
{
"language": "rust",
"title": "Rust Hello World",
"code": "fn main() {\n println!(\"Hello, Rust!\");\n}"
},
{
"language": "py",
"title": "Simple Python Function",
"code": "def greet(name):\n print(f\"Hello, {name}!\")\n\ngreet(\"World\")"
}
]
Contributions are welcome! If you have ideas for new features or have found a bug, please open an issue or submit a pull request.