DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

wv-y /

wv-y/dsh-file-editor

Verified

Text editor for the DSH right sidebar: line numbers, highlighting, folding, Git marks, autosave, find/replace, Markdown preview.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@76cb3076

侧边文件编辑器(DSH 插件)

给 DSH 的文本文件加一个顺手的编辑器,两种入口可同时使用:

  • 官方文档预览:预览标题栏的「编辑」按钮,在右侧栏就地展开编辑面板(宽度跟随右侧栏),改完保存回磁盘。
  • 配合 dsh-better-sidebar(可选):安装后注册 file viewer,在它的文件树里打开 .ts .tsx .js .md .json 等文本文件时由本插件接管渲染;未安装时该入口不注册,其余功能照常。

功能简介

  • 行号、语法高亮(60+ 种语言)、代码折叠
  • 自动保存(停手约 0.8s 写盘)、⌘S 手动保存,切换/关闭前刷盘
  • 外部改动三方合并:不冲突自动合并保存,冲突时给出「采用磁盘版本 / 覆盖保存」
  • Git 改动色条(新增/修改/删除),点击查看该处 diff,可回滚单块改动
  • 查找 / 替换:⌘F、⌘H,区分大小写、上一个/下一个、全部替换,命中行内高亮(当前项亮黄)
  • Markdown 编辑 + 预览:默认进预览,点「预览」会先保存再渲染
  • 中文输入法安全(拼写期间暂停自动保存)

安装

dsh plugin --profile <profile> add dsh-file-editor                 # 从 npm 安装
dsh plugin --profile <profile> add github:wv-y/dsh-file-editor     # 直接从 GitHub 安装

装完刷新页面(Desktop 用户建议 ⌘R 硬刷新)。需要 DSH 0.2.2-rc.1 或更新版本;dsh-better-sidebar 为可选依赖。

—/ 5

No ratings yet

Verified DSH bundle

Commit 76cb30767062

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout