ThinkofRain1213/dsh-smooth-cursor-patched ↗★ 2
dsh-smooth-cursor-patched
为输入框和问题卡片提供平滑光标动画特效 适合追求视觉动效、希望美化 DSH 输入光标轨迹的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ThinkofRain1213/dsh-smooth-cursor-patched說明文件
閱讀完整 README ↗安装与使用
从 npm 安装(推荐)
dsh plugin --profile web add dsh-smooth-cursor-patched
从 GitHub 安装
dsh plugin --profile web add github:ThinkofRain1213/dsh-smooth-cursor-patched
安装后刷新或重启 dsh web,在 插件 → 本插件 的 bundle 详情页里配置:配置区位于描述与「包含的组件」之间。
版本要求:DSH 0.1.6-alpha.2 及以后。 插件自有设置页由
@deepseek-ai/dsh-client-ui-plugin-manager提供,该包首次发布于0.1.6-alpha.2,并从中提供plugins.bundle.config槽位。0.1.5 及更早的版本没有插件管理界面,因此没有这个槽位——插件会安静地不渲染配置区(光标特效本身不受影响,走localStorage的既有偏好继续生效)。从本版本起,本插件只提供插件页这一处配置入口:先前注册在「设置 → 通用」的输入光标行已移除,避免同一组开关出现两次。
手动安装(本地开发)
克隆本仓库并作为插件 bundle 添加:
git clone https://github.com/ThinkofRain1213/dsh-smooth-cursor-patched.git
cd dsh-smooth-cursor-patched
pnpm install --ignore-scripts
pnpm build
然后在你的 profile 的 cordis.patch.yml 中注册:
- insert:
- id: smooth-cursor-patched
name: dsh-smooth-cursor-patched
注意:
id/name必须与包名一致。改写为上游的smooth-cursor/dsh-smooth-cursor会与官方插件条目冲突,DSH 会因 loader id 重复而报Failed to load plugins。
使用
当输入框获得焦点时特效即生效。打开 插件 → 本插件 的配置区可以:
- 开关整个特效、彗星拖尾或光标闪烁。
- 从色板选择强调色,或使用自定义取色器。
- 选择光标的粗细。
偏好保存在浏览器 localStorage 里,改动即时生效,无需重启或刷新。