dsh-desktop-tweaks 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1 — 2026-10-19
4
+
5
+ - 中英文介绍统一为「DeepSeek Harness 桌面端修改:F11 全屏切换,终端内使用 Ctrl+C/V 复制粘贴。」,去掉「智能 / smart」说法:终端里的改动只是快捷键行为,不是智能化功能。
6
+ - 设置项名称同步改为「终端 Ctrl+C/V 复制粘贴」。
7
+
3
8
  ## 0.1.0 — 2026-10-18
4
9
 
5
- - 首个版本:F11 切换窗口全屏(全屏时隐藏「应用/编辑」菜单栏与后退、前进按钮,内容顶到最上沿),终端内 Ctrl+C / Ctrl+V 智能复制粘贴。
10
+ - 首个版本:F11 切换窗口全屏(全屏时隐藏「应用/编辑」菜单栏与后退、前进按钮,内容顶到最上沿),终端内 Ctrl+C / Ctrl+V 复制粘贴。
6
11
  - 两个功能各自带开关,入口在「设置 → 通用」,状态保存在 localStorage。
7
12
  - 开源(MIT)、发布到 npm,并提供插件市场静态索引(GitHub Pages)。
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # DSH Desktop Tweaks(桌面增强)
2
2
 
3
- DeepSeek Harness 桌面端的两个小增强,各自带开关,入口在 **设置 → 通用**:
3
+ DeepSeek Harness 桌面端修改:F11 全屏切换,终端内使用 Ctrl+C/V 复制粘贴。两个功能各自带开关,入口在 **设置 → 通用**:
4
4
 
5
5
  - **F11 切换窗口全屏**:进入全屏时隐藏「应用 / 编辑」菜单栏与后退、前进按钮,内容顶到屏幕最上沿;退出全屏后恢复。
6
- - **终端 Ctrl+C / Ctrl+V 智能复制粘贴**:终端内有选区时 `Ctrl+C` 复制、无选区时照常发送 `SIGINT`;`Ctrl+V` 直接粘贴(走 xterm 的粘贴通道,多行文本不会弹确认)。
6
+ - **终端使用 Ctrl+C/V 复制粘贴**:终端内有选区时 `Ctrl+C` 复制、无选区时照常发送 `SIGINT`;`Ctrl+V` 直接粘贴(走 xterm 的粘贴通道,多行文本不会弹确认)。
7
7
 
8
8
  不修改 DSH 本身,只通过客户端插件注入少量事件监听与样式;两个开关都可独立关闭,关闭后行为与原生完全一致。
9
9
 
@@ -33,7 +33,7 @@ dsh plugin --profile desktop add dsh-desktop-tweaks
33
33
  ```bash
34
34
  # tarball
35
35
  npm pack
36
- dsh plugin --profile desktop add ./dsh-desktop-tweaks-0.1.0.tgz
36
+ dsh plugin --profile desktop add ./dsh-desktop-tweaks-0.1.1.tgz
37
37
 
38
38
  # 本地目录(link,改代码立即生效,适合开发)
39
39
  dsh plugin --profile desktop add /path/to/dsh-desktop-tweaks
@@ -44,17 +44,17 @@ dsh plugin --profile desktop add "github:amstlkqp114514/dsh-desktop-tweaks#<comm
44
44
 
45
45
  ### 这些安装方式有什么区别
46
46
 
47
- | 方式 | 实际行为 | 适合 |
48
- | --- | --- | --- |
49
- | 市场 / `add dsh-desktop-tweaks` | pnpm 从 npm registry 安装预构建包,与市场安装完全同一套流程 | 普通用户 |
50
- | 本地目录 | `link:`,profile 里只放软链接 | 开发调试 |
51
- | tgz / git | 把包内容复制进 profile,与源目录脱钩 | 分发、锁版本 |
47
+ | 方式 | 实际行为 | 适合 |
48
+ | ------------------------------- | ----------------------------------------------------------- | ------------ |
49
+ | 市场 / `add dsh-desktop-tweaks` | pnpm 从 npm registry 安装预构建包,与市场安装完全同一套流程 | 普通用户 |
50
+ | 本地目录 | `link:`,profile 里只放软链接 | 开发调试 |
51
+ | tgz / git | 把包内容复制进 profile,与源目录脱钩 | 分发、锁版本 |
52
52
 
53
53
  本插件是纯 ESM、无构建步骤;只有带 `prepare` 构建脚本的包才需要在 `pnpm-workspace.yaml` 里配置 `allowBuilds`。
54
54
 
55
55
  ## 设置入口
56
56
 
57
- 设置 → 通用 → 「F11 切换窗口全屏」「终端 Ctrl+C/V 智能复制粘贴」。默认开启,状态保存在本地 `localStorage`(键 `dsh-desktop-tweaks/settings`)。
57
+ 设置 → 通用 → 「F11 切换窗口全屏」「终端 Ctrl+C/V 复制粘贴」。默认开启,状态保存在本地 `localStorage`(键 `dsh-desktop-tweaks/settings`)。
58
58
 
59
59
  ## 兼容性
60
60
 
@@ -108,4 +108,4 @@ MIT © 2026 青柑橘
108
108
 
109
109
  ---
110
110
 
111
- **English**: Desktop tweaks for DeepSeek Harness — F11 fullscreen toggle (hides the Windows menu bar and back/forward buttons while fullscreen) and smart Ctrl+C/V inside the built-in terminal. Toggle both in **Settings → General**. Install with `dsh plugin --profile desktop add dsh-desktop-tweaks`, or add the market index `https://amstlkqp114514.github.io/dsh-desktop-tweaks/index.json`. MIT licensed.
111
+ **English**: DeepSeek Harness desktop tweaks: an F11 fullscreen toggle (hides the Windows menu bar and the back/forward buttons while fullscreen), and Ctrl+C / Ctrl+V copy and paste inside the built-in terminal. Both are switchable in **Settings → General**. Install with `dsh plugin --profile desktop add dsh-desktop-tweaks`, or add the market index `https://amstlkqp114514.github.io/dsh-desktop-tweaks/index.json`. MIT licensed.
package/lib/client.js CHANGED
@@ -6,15 +6,15 @@ window.__ModuleLoader__.load({
6
6
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
7
  const React = require("react");
8
8
  const h = React.createElement;
9
- // dsh-desktop-tweaks v0.2.0 — slim edition: F11 titlebar/fullscreen toggle
10
- // and smart terminal Ctrl+C/V only. Sidebar width controls were removed.
9
+ // dsh-desktop-tweaks — F11 fullscreen toggle, plus terminal Ctrl+C/V
10
+ // copy-paste. Sidebar width controls were removed.
11
11
 
12
12
  //#region settings
13
13
  const STORAGE_KEY = "dsh-desktop-tweaks/settings";
14
14
  const DEFAULTS = {
15
15
  /** F11 toggles window fullscreen. */
16
16
  titlebarToggle: true,
17
- /** Smart Ctrl+C/V inside the built-in terminal. */
17
+ /** Ctrl+C/V copy-paste inside the built-in terminal. */
18
18
  terminalClipboard: true,
19
19
  };
20
20
  const state = { settings: { ...DEFAULTS } };
@@ -146,7 +146,7 @@ window.__ModuleLoader__.load({
146
146
  }
147
147
  }
148
148
 
149
- /** Smart Ctrl+C/V inside the built-in terminal; no effect anywhere else. */
149
+ /** Ctrl+C/V copy-paste inside the built-in terminal; no effect anywhere else. */
150
150
  function onTerminalKey(event) {
151
151
  if (!getSettings().terminalClipboard) return;
152
152
  if (!event.ctrlKey || event.shiftKey || event.altKey || event.metaKey) return;
@@ -259,7 +259,7 @@ window.__ModuleLoader__.load({
259
259
  function TerminalClipboardRow() {
260
260
  const settings = useSettingsState();
261
261
  return h(ToggleRow, {
262
- title: "终端 Ctrl+C/V 智能复制粘贴",
262
+ title: "终端 Ctrl+C/V 复制粘贴",
263
263
  hint: "仅在自带终端内生效:选中文本时 Ctrl+C 复制,无选区时 Ctrl+C 仍发送 SIGINT;Ctrl+V 粘贴而不是输入 ^V。",
264
264
  checked: settings.terminalClipboard,
265
265
  onChange: (checked) => { updateSettings({ terminalClipboard: checked }); },
package/locale/en.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "Desktop Tweaks",
4
- "description": "F11 fullscreen toggle and smart Ctrl+C/V in the built-in terminal."
4
+ "description": "DeepSeek Harness desktop tweaks: F11 fullscreen toggle, and Ctrl+C / Ctrl+V copy and paste in the terminal."
5
5
  }
6
6
  }
package/locale/zh.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "桌面增强",
4
- "description": "F11 切换窗口全屏;终端内 Ctrl+C/V 智能复制粘贴。"
4
+ "description": "DeepSeek Harness 桌面端修改:F11 全屏切换,终端内使用 Ctrl+C/V 复制粘贴。"
5
5
  }
6
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-desktop-tweaks",
3
- "version": "0.1.0",
4
- "description": "Desktop tweaks for DeepSeek Harness: F11 fullscreen toggle and smart Ctrl+C/V in the built-in terminal.",
3
+ "version": "0.1.1",
4
+ "description": "DeepSeek Harness desktop tweaks: F11 fullscreen toggle, and Ctrl+C / Ctrl+V copy and paste in the terminal.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "exports": {