rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Yzz25/dsh-md-editor
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Edit workspace Markdown files in the DeepSeek Harness right Sidebar.
A .md or .markdown file opened from the file tree lands in a CodeMirror 6
editor with syntax highlighting, line numbers, undo/redo, find, Tab indentation,
and list continuation on Enter. Text is selected and copied with the browser's
own selection, so drag-select, double-click, Ctrl+A, and Ctrl+C behave like
any other page. Saving is automatic (800 ms after the last keystroke, on blur,
and when the tab goes away); Ctrl+S always saves now.
documentPreviews, extensions: ['md', 'markdown'], loading: 'renderer'),
so the shipped tab, path header, reload button, wrap toggle, and viewer menu
stay in place. Pick the shipped Markdown viewer in the toolbar's viewer menu to
read the rendered document again. The body reads the file itself and keeps
rendering while the shell reloads content, so a save never rebuilds the
editor — scroll offset, caret, focus, and an in-progress input-method
composition all survive.POST /md-editor: re-authorized on every request
(ctx.connection.requestRejection), fenced to the Session's workspace
(ctx.fs.contains), and written with ctx.fs.writeText under a
replaceIfVersion guard plus the Session's sandbox policy.compositionend, so composed characters
cannot be lost.A- / A+ control resizes the editor text
between 11 and 24 px. The choice is remembered for the profile's browser and
applies to every open editor at once.The browser half is a generated bundle:
pnpm install --node-linker=hoisted
node build.mjs
client.js is the build output — a window.__ModuleLoader__.load({ id, factory })
call whose factory returns the plugin exports, with React (and only React) kept
external for the page's module table.
Install the directory as a local bundle and enable Markdown 编辑器 /
Markdown editor in Plugins. The Host half adds the /md-editor route;
the browser half activates once the document preview is loaded.
The complete Chinese guide — interface, shortcuts, autosave versus manual save, text size, conflict handling, read-only cases, fidelity rules, and uninstalling — lives in docs/USAGE.zh.md.
MIT — see LICENSE.
A save no longer rebuilds the editor: renderer-mode bodies survive the shell's content reloads. The body still unmounts when the tab itself goes away (another tab selected, pane closed), so it remembers per resource address the caret, the scroll offset, the focus, and whether the text was unsaved:
Two details make that scroll restoration honest. The offset is recorded by a
scroll listener rather than read when the component is disposed, because a
passive cleanup runs after React detached the DOM, where scrollTop reads 0.
The restore itself runs after the shell claimed the scrollport — the shell
applies its own remembered offset there, measured against whatever renderer held
the tab before — and the surface is then held at that offset for about a second:
CodeMirror measures line heights asynchronously and re-scrolls from those
measurements, so a fixed set of passes is not enough. A wheel, touch, mouse
press, key press, or a deliberate layout change (wrap, text size, line
navigation) ends the hold immediately, so the reader always wins. Wrapping is
applied when the view is created so a mount never reflows the text right after
the offset was restored.
An external change reaches a live editor as an in-place document replacement (the body is not rebuilt); that replacement keeps the scroll offset too, because CodeMirror scrolls a moved selection into view.
Only uniform LF or CRLF files are editable. A file with mixed terminators stays readable but read-only: rewriting it as a whole file would change lines nobody edited, which the fidelity rule forbids.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。