Repository navigation
v1.4.0 — localised button, download icon
A Export MD button in the DSH Web session header that writes the current
conversation to a file chosen through the native save dialog, plus a CLI over
the same renderer. It reads session logs directly from disk, multi-frame zstd
included, which is what makes it work on DSH 0.2.x where other export plugins
fail on the version gate, the session format, or the decompression.
Requires Node 22.15+. The
node:zlibzstd API does not exist in Node 20 or 21.
Install
Open Plugins in the DSH sidebar → Add plugin → paste
https://github.com/hoshF/dsh-md-export → restart DSH. Or clone and run
./install.sh.
Added
- The UI copy is localised. The button was hardcoded Chinese, so in an
English UI it was the only Chinese string in the session header. It now
registerszhandendictionaries with the host's locale service and
subscribes tolocale/change, so switching the language in Settings updates it
without a reload. The plugin does not decide the language itself — that is the
host's precedence chain (explicit user choice, then browser language, then
English) — and it deliberately does not readnavigator.language, which would
bypass the user's own setting.
Changed
- A download glyph precedes the label, and the label is shorter. The icon is
inline SVG rather than an emoji, which renders differently on every platform.
Icon-only was considered and rejected: the session header already offers the
official Download session log, which produces a ZIP of JSONL rather than a
readable transcript, and an unlabelled arrow cannot be told apart from it. titleandaria-labeltext follow the language too.