A modern terminal-based Markdown editor with real-time preview.
pip install tusk-editorgit clone https://github.com/vedant-asati03/tusk.git
cd tusk
pip install -e .To start the editor:
tusk filename.mdCtrl+S: Save fileCtrl+Shift+S: Save As / rename draftsCtrl+P: Open command paletteCtrl+@: Toggle preview paneCtrl+L: Expand input-boxCtrl+Q: Shrink input-boxCtrl+B: Insert Table of ContentsTab: Expand snippet
Ctrl+D: Duplicate current lineAlt+↑: Move line upAlt+↓: Move line down
Ctrl+Alt+I: Toggle auto-indent
Automatic completion for:
- Smart Brackets: (), [], {}, <> with context awareness
- Markdown Formatting: **, __, ~~, ``` with improved pairing
- Headers: # automatically adds space
- Auto-indent: Maintains indentation for lists, code blocks, and quotes
Built-in snippets:
- Headers:
h1,h2,h3 - Formatting:
bold,italic,strike,code - Lists:
ul,ol - Links:
link,img - Others:
quote,hr,todo,done
Custom snippets can be added via ~/.config/tusk/snippets.json
- Snippets:
~/.config/tusk/snippets.json - Logs:
~/.tusk/logs/tusk.log - Auto-save: Enabled by default
Feel free to contribute by forking the repo and submitting a pull request! 🚀
This project is licensed under the MIT License - see the LICENSE file for details.
