kirarikaryuu/dsh-gbk-text ↗★ 0
dsh-gbk-text
Fix the DeepSeek Harness sidebar preview for GBK/GB18030 text: decode legacy-encoded files at the filesystem seam instead of failing with FS_NOT_TEXT.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kirarikaryuu/dsh-gbk-text说明文档
阅读完整 README ↗1. 安装(桌面端自带的启动器允许对 desktop profile 使用 plugin 子命令)
& '\resources\runtime\cli\bin\dsh.cmd' plugin --profile desktop add 'C:/path/to/dsh-gbk-text'
配置
默认只启用 GB18030,这是刻意的:GB18030 几乎能解任何字节对,自动去试 Big5 / Shift-JIS 只会把它们的文件显示成「看起来像中文」的乱码,比诚实地拒绝更糟。
| 键 | 默认 | 作用 |
|---|---|---|
encodings | [gb18030] | 替换回退清单,顺序即优先级 |
excludeEncodings | [] | 从默认清单里去掉几个;encodings 一旦显式设置,本键被忽略 |
- id: dsh-gbk-text
name: dsh-gbk-text
config:
# 需要繁体/日文时再开,顺序即优先级
encodings: [gb18030, big5, shift_jis]
# 或者只去掉默认里的某一项(以后新增的默认编码仍会生效)
# excludeEncodings: [gb18030]
不认识的编码名会被忽略,不会拖垮所有文本读取;把默认清单全部排除等于关掉回退,行为回到原生 UTF-8 拒绝。