Skip to content

Vedant-Asati03/Tusk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tusk

A modern terminal-based Markdown editor with real-time preview.

Version Python License

tusk-logo

Table of Contents

Installation

Via pip

pip install tusk-editor

From source

git clone https://github.com/vedant-asati03/tusk.git
cd tusk
pip install -e .

Usage

To start the editor:

tusk filename.md

Key Bindings

Basic Operations

  • Ctrl+S: Save file
  • Ctrl+Shift+S: Save As / rename drafts
  • Ctrl+P: Open command palette
  • Ctrl+@: Toggle preview pane
  • Ctrl+L: Expand input-box
  • Ctrl+Q: Shrink input-box
  • Ctrl+B: Insert Table of Contents
  • Tab: Expand snippet

Line Operations

  • Ctrl+D: Duplicate current line
  • Alt+↑: Move line up
  • Alt+↓: Move line down

Editor Features

  • Ctrl+Alt+I: Toggle auto-indent

Auto-Completion

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

Snippets

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

Configuration

  • Snippets: ~/.config/tusk/snippets.json
  • Logs: ~/.tusk/logs/tusk.log
  • Auto-save: Enabled by default

Contributing

Feel free to contribute by forking the repo and submitting a pull request! 🚀

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A modern terminal-based Markdown editor with real-time preview, supercharged with vim.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages