Skip to content

xqtr/markln

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MarkLn v1.2

A terminal-based markdown editor built with Textual (Python TUI framework)

DESCRIPTION

A feature-rich markdown editor that runs in the terminal with real-time preview. Edit markdown files with instant rendering in a split-pane interface. Perfect for quick editing without leaving the command line.

FEATURES

  • Dual-pane interface: Edit markdown with live preview
  • Toggle between views (Synced, Editor, Preview)
  • Table of contents, dynamically created
  • Tags selector to insert easily markdown tags (F3)
  • File management: Open, save, and save-as functionality
  • Keyboard-driven: Fully operable with keyboard shortcuts
  • Full mouse support also
  • Theme support
  • Comprehensive help: Built-in markdown syntax reference
  • Editor supports common key shortcuts for copy/paste/undo - ctrl-c, ctrl-x, ctrl-w
  • Support for terminal shortcuts like ctrl-w and others
  • Resize on the fly
  • Syntax Highlighting

INSTALLATION

Prerequisites:

  • Python 3.8 or higher
  • pip package manager

Steps:

Clone the repository:

git clone <repository-url> cd markln

Install requirements:

pip install -r requirements.txt

Run the editor:

python markln.py

USAGE

Keyboard shortcuts:

  • Tab: Switch between controls
  • Ctrl+O: Open file
  • Ctrl+S: Save file
  • Ctrl+Shift+S: Save as
  • Ctrl+T: Toggle editor/preview
  • Ctrl+L: Show help
  • Ctrl+N: New file
  • Ctrl+R: Toggle Wrap
  • Ctrl+J: Sync Editor with Preview
  • Ctrl+G: Dialog box to insert Markdown Tags
  • Ctrl+Q: Quit
  • Ctrl+: Options Menu
  • Ctrl+Home: Go to document start
  • Ctrl+End: Go to document end

SUPPORTED MARKDOWN

  • Headers (#, ##, ###)
  • Bold and italic text
  • Lists (ordered and unordered)
  • Code blocks and inline code
  • Links and images
  • Blockquotes
  • Tables
  • Horizontal rules

DEPENDENCIES

  • Python standard library
  • Textual - TUI framework
  • PyperClip

SHOWCASE

dual panel

open dialog

live preview

tags list

LICENSE

GPL-3.0-or-later

SUPPORT

For issues and questions, please check the issues page or create a new issue with detailed description.

This editor is designed for developers who prefer working in the terminal and need a quick, efficient way to edit markdown files with instant visual feedback.

CHANGELOG

1.1

  • When text is changed and try to quit or create a new file, now a Save dialog appears.
  • Minor bugs and code optimization.

1.2

  • Added feature to show/hide TOC
  • Added Options dialog, with functions
  • Colorized the statusbar
  • When in full editor mode, the markdown preview doesn't update, so makes typing quicker and responsive
  • Added the option to stop continues rendering of Markdown on the preview, to make typing more responsive. You can Update the preview, from the options menu
  • The app. now has a config file to save default values, like theme, last file, window mode
  • You can specify in which mode you want the app to open at start, with the "window_mode" value of the config file. The values it accepts are: split, preview, editor
  • Added support for installing external themes. Specify the folder of the themes and the name of the theme file to load a new one.
  • When exiting the program, the current theme will be saved and applied next time you run it again
  • Three new themes provided: Arctic, Turbo Pascal, MSDOS

About

A MarkDown editor, with live preview, for use in the Terminal

Resources

License

Stars

Watchers

Forks

Languages