dsh-draft
其他 活跃维护

dsh-draft

lalalaleo/dsh-draft

Markdown的草稿板插件,支持实时预览编辑,内容自动存入本地,刷新页面不丢失。无需额外配置,即装即用,可随手记录灵感与写作草稿。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
86 KB
仓库大小
2 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:lalalaleo/dsh-draft
git clone https://github.com/lalalaleo/dsh-draft.git
git clone git@github.com:lalalaleo/dsh-draft.git
README.md main

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 shortcuts — Mod-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 adds a Draft tab to the built-in right sidebar (dsh 0.1.5-rc.1 or newer):

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. The tab can be placed, split, or floated like any other sidebar tab.

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