dsh-clipboard-menu v0.2.0
新增
- 每个菜单项都配了图标 —— 线性风格、跟随主题文字颜色
- 搜索:选中文字后直接用默认浏览器搜索
- 菜单右侧标出当前引擎
- 「搜索引擎…」可切换 百度 / Bing / Google / DuckDuckGo,选择记进
localStorage,一次选定永久生效 - 首次使用按界面语言猜:中文 → 百度,其他 → Google
- 浏览器不用配:
window.open经桌面端shell.openExternal交给操作系统默认浏览器
- 只读区域(AI 回复 / 文档预览 / 代码块)同样支持搜索
菜单顺序
可编辑:剪切 / 复制 / 粘贴 / 全选 → 分隔线 → 搜索 / 搜索引擎…
工程
- 修正了
package.json与仓库描述(此前只写了输入框,漏了只读复制) - 新增 CI:node 22/24 × ubuntu/windows,跑 34 项冒烟测试
- 声明
engines.node >= 22(jsdom 30 与 DSH 自身都要求 22+)
安装
dsh plugin --profile <profile> add github:wuwaka/dsh-clipboard-menu#v0.2.0Added
- An icon on every entry — outline style, following the menu's text colour
- Search: send the selection to your default browser
- the current engine is shown on the right
- "Search engine…" switches between Baidu / Bing / Google / DuckDuckGo; the pick is stored in
localStorageand sticks - before any pick, the guess follows the UI language: Chinese → Baidu, otherwise Google
- no browser configuration needed:
window.opengoes through the desktop shell'sshell.openExternalto your OS default browser
- Read-only surfaces (AI replies, document previews, code blocks) get search too
Menu order
Composer: cut / copy / paste / select all → separator → search / search engine…
Engineering
- Corrected the
package.jsonand repository description, which still only mentioned the composer - Added CI: node 22/24 on ubuntu and windows, running 34 smoke assertions
- Declared
engines.node >= 22(both jsdom 30 and DSH require 22+)
Full changelog: v0.1.1...v0.2.0