editxr

A WYSIWYG Markdown editor for the terminal.
100% Swift, zero dependencies. macOS & Linux.
AI Assistant integrated. Use any LLM you like.

curl -fsSL https://raw.githubusercontent.com/pixdeo/editxr/main/install.sh | bash

Short clips of editxr in use: live Markdown rendering, AI section editing as an inline diff, themes, the rendered/raw toggle, incremental find, and instant startup.

Renders as you type
AI section editing
Themes, light or dark
Rendered ↔ raw
Incremental find
Opens instantly

# What it does

Renders as you type

Headings, lists, tables, and code styled in place — not in a split preview. The line you're on stays plain, editable text.

AI edits you review

Select a section, describe the change, and accept or reject it as a red/green inline diff. No chat thread, nothing lands unapproved.

Bring your own model

LM Studio (local), OpenAI, OpenRouter, or an offline mock that needs no backend at all.

12 themes, light or dark

Clay, Dracula, Nord, Catppuccin, Tokyo Night and more — picked from a rounded command palette.

Fast & dependency-free

A native Swift binary. It opens instantly and stays fast on large files. macOS & Linux.

Everything else

Incremental find, HTML export, syntax highlighting, word wrap, and per-file cursor memory.

# How it works

  1. editxr notes.md — open or create a file.
  2. Type. It renders live; the cursor line stays raw.
  3. Ctrl+Space — ask AI for an edit, review the diff, press y to keep it.
  4. Ctrl+S and you're done.

# Install

One line (builds from source; needs Xcode or the Command Line Tools, or Swift on Linux):

curl -fsSL https://raw.githubusercontent.com/pixdeo/editxr/main/install.sh | bash

Homebrew:

brew install pixdeo/tap/editxr

Or grab a signed, notarised binary from the releases.