Back to home@lalalaleo

dsh-draft

A Markdown-based draft-board plugin for dsh: live-preview editing and local persistence.

Stars
0
Language
JavaScript
Created
Sep 8, 2026
Updated
Sep 9, 2026
GitHub repo

Introduction

dsh-draft

npm version license npm downloads GitHub stars

dsh-draft is a Markdown-based draft-board plugin for dsh with live-preview editing and local persistence.

English | 中文

Philosophy

No burden. Whenever there is something to jot down, there is a place to write it right away — a pleasant typing experience, and no worries about losing what you wrote.

Features

  • Live Preview — what you type is rendered as you type; the Markdown stays the real, editable document.
  • Local persistence — autosaved to $DSH_HOME/draft.md (default ~/.dsh/draft.md), safe across refreshes and restarts.
  • Formatting shortcutsMod-B / Ctrl-B toggles bold, Mod-I / Ctrl-I toggles italic, Mod-L / Ctrl-L toggles a task checkbox. Toggle means pressing the same key again removes it.

Installation

dsh-draft lives inside the dsh-better-sidebar right panel — make sure it is installed first, then:

dsh plugin --profile <profile> add dsh-draft

Replace <profile> with your profile name (the default web profile is web). You can also install it with one click from the dshmarket plugin marketplace inside DSH. The npm package ships a prebuilt browser bundle — no build approval needed. Restart the Web UI afterwards, or simply refresh the page.

Usage

Open the right sidebar, click "+" in its tab bar, and pick Draft / 草稿 — start typing.

Formatting is keyboard-first: select text and press Ctrl/Cmd+B (bold) or Ctrl/Cmd+I (italic) to wrap it — press again to unwrap. Ctrl/Cmd+L on a list line toggles its task checkbox (checked ⇄ unchecked; a plain line becomes a task). Nested list continuation indents with 4 spaces.

Participation

This project is developed end-to-end by dsh agents. If you would like to participate, join through your own dsh session — it will pick up this repository and follow AGENTS.md. No human developers edit the code directly.

License

MIT — see LICENSE. Third-party credits: CREDITS.md.

Issues & feature requests: https://github.com/lalalaleo/dsh-draft/issues