An old-fashioned Markdown writer for the terminal
mustty is an unhurried place to write by hand, one word at a time, inside the terminal. It opens a single Markdown file on a centered 72-column sheet with nothing on screen but the title, the body, and a one-line status bar. Syntax markers stay visible but dimmed, so you always edit the source in front of you.
- One file at a time on a 72-column centered page (40–120), with no file tree, splits, borders, or chrome.
- Markdown headings, emphasis, code, links, lists, and quotes are styled in place while their
#,*, and`markers dim instead of disappearing. - Lists continue themselves:
Enterstarts the next bullet, checkbox or number,Tab/Shift+Tabnest and un-nest items, and numbered lists renumber as you edit. - Autosave writes atomically after 2 seconds of idle time, on focus loss, and on quit, and pauses if another program modifies the file on disk.
- Soft wrapping follows Unicode line-breaking rules (UAX #14), so mixed English and CJK text wraps cleanly and closing punctuation never starts a line.
- Positioning the terminal's hardware cursor—rather than drawing a fake one—keeps IME candidate windows attached to the character you are typing.
- The terminal window title follows the document title (or its file name) as you type, with a leading
*while there are unsaved changes. Ctrl+Ffinds text as you type and highlights every match;Ctrl+N/Ctrl+Bstep to the next / previous one, andEsctakes you back to where you were. Lowercase queries ignore case.- Typewriter mode (
Ctrl+T), Focus mode (Ctrl+O), optional vim keys, optional mouse support, OSC 52 clipboard over SSH, and an English / Simplified Chinese UI.
macOS and Linux:
curl -LsSf https://github.com/joyqi/mustty/releases/latest/download/mustty-installer.sh | shWindows (PowerShell):
irm https://github.com/joyqi/mustty/releases/latest/download/mustty-installer.ps1 | iexHomebrew on macOS or Linux:
brew install joyqi/tap/musttyFrom source with Rust 1.88 or newer:
cargo install --git https://github.com/joyqi/musttyOr grab an archive from Releases.
Or try it in your browser at mustty.com — the editor runs there as WebAssembly.
mustty [FILE]
Pass a file to open or create it on first save, or omit FILE to start an Untitled document (-h / --help and -V / --version are the only flags).
- Press
Ctrl+Ginside the app (or?in vim Normal mode) to see the shortcuts worth knowing. - Press
Ctrl+L(orgx/Enterin vim Normal mode) to open the link under the cursor in your browser; onlyhttp(s)://andwww.addresses open. - Press
Ctrl+Pto open the live settings panel. Changes apply immediately and write back to~/.mustty.toml(width,vim,mouse,autosave,autosave_idle_ms,typewriter,focus_mode,scrolloff,tab_width,code_color,code_highlight,link_color,rule_lines,cursor,cursor_blink,lang).code_highlight(on by default) colors code blocks whose fence names a language (```rust,```py,```diff, 30 languages): keywords bold, strings green, comments dim, diff lines green and red. Off, code blocks are one color,code_color.link_color(noneby default, or one of the 8code_colornames) colors link text and plainhttp(s):///www.URLs, which are underlined either way.rule_lines(off by default) draws---,***and___as a line across the text column, showing the characters again while the cursor, the selection or a find match is on it.cursorisbar,block, orunderline, previewed live in the panel; with vim on,cursorandcursor_blinkonly affect Insert mode (Normal and Visual always use a block).