Skip to content

PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.

feat(ui): pick quick paste rows with Option+1-9 and let users change it

baiyuzefb652aaab9cd
diff --git a/client-core/internal/config/config.go b/client-core/internal/config/config.go
index ba5e42b..ae42d01 100644
--- a/client-core/internal/config/config.go
+++ b/client-core/internal/config/config.go
@@ -71,6 +71,9 @@ type Config struct {
QuickPasteHotkey string `json:"quick_paste_hotkey,omitempty"`
// QuickPasteCopyOnly 选中后只放进剪贴板,不模拟粘贴
QuickPasteCopyOnly bool `json:"quick_paste_copy_only,omitempty"`
+ // QuickPasteIndexModifier 是快捷窗口里按住它再按 1–9 粘贴对应那一条的修饰键:"alt"、"meta"、"ctrl"。
+ // 空字符串表示默认的 alt(Mac 上是 ⌥)
+ QuickPasteIndexModifier string `json:"quick_paste_index_modifier,omitempty"`
// ReceiveDir 是隔空传送收到的文件存放的位置,空字符串表示系统的「下载」文件夹(见 DownloadsDir)
ReceiveDir string `json:"receive_dir,omitempty"`
@@ -209,6 +212,11 @@ func (c *Config) Validate() {
}
// 写不对的快捷键当作默认的
c.QuickPasteHotkey = NormalizeHotkey(c.QuickPasteHotkey)
+ switch c.QuickPasteIndexModifier {
+ case "", "alt", "meta", "ctrl":
+ default:
+ c.QuickPasteIndexModifier = ""
+ }
switch c.ReceiveFrom {
case ReceiveFromOff, ReceiveFromFriends, ReceiveFromEveryone:
default:
diff --git a/client-core/internal/rpc/convert.go b/client-core/internal/rpc/convert.go
index afdd53b..57d1e47 100644
--- a/client-core/internal/rpc/convert.go
+++ b/client-core/internal/rpc/convert.go
@@ -80,21 +80,22 @@ func configToProto(c config.Config) *pb.Config {
Language: c.Language,
LanDisabled: c.LANDisabled,
ServiceMode: serviceModeToProto(c), CustomSignalingUrl: c.CustomSignalingURL, OfficialNoticeAck: c.OfficialNoticeAck,
- UpdateCheckDisabled: c.UpdateCheckDisabled,
- UpdateSkipVersion: c.UpdateSkipVersion,
- QuickPasteDisabled: c.QuickPasteDisabled,
- QuickPasteHotkey: c.QuickPasteHotkey,
- QuickPasteCopyOnly: c.QuickPasteCopyOnly,
- ReceiveDir: c.ReceiveDir,
- ReceiveDisabled: c.ReceiveDisabled,
- ReceiveNotifyDisabled: c.ReceiveNotifyDisabled,
- SendLayoutStacked: c.SendLayoutStacked,
- RealtimeSyncDisabled: c.RealtimeSyncDisabled,
- SyncBacklog: c.SyncBacklog,
- SyncDisabledPeers: append([]string(nil), c.SyncDisabledPeers...),
- ReceiveFrom: receiveFromToProto(c),
- EveryoneUntilUnix: c.EveryoneUntil,
- DisplayName: c.DisplayName,
+ UpdateCheckDisabled: c.UpdateCheckDisabled,
+ UpdateSkipVersion: c.UpdateSkipVersion,
+ QuickPasteDisabled: c.QuickPasteDisabled,
+ QuickPasteHotkey: c.QuickPasteHotkey,
+ QuickPasteCopyOnly: c.QuickPasteCopyOnly,
+ QuickPasteIndexModifier: c.QuickPasteIndexModifier,
+ ReceiveDir: c.ReceiveDir,
+ ReceiveDisabled: c.ReceiveDisabled,
+ ReceiveNotifyDisabled: c.ReceiveNotifyDisabled,
+ SendLayoutStacked: c.SendLayoutStacked,
+ RealtimeSyncDisabled: c.RealtimeSyncDisabled,
+ SyncBacklog: c.SyncBacklog,
+ SyncDisabledPeers: append([]string(nil), c.SyncDisabledPeers...),
+ ReceiveFrom: receiveFromToProto(c),
+ EveryoneUntilUnix: c.EveryoneUntil,
+ DisplayName: c.DisplayName,
}
}
@@ -173,6 +174,10 @@ func configFromProto(in *pb.Config, base config.Config) config.Config {
// 空字符串就是默认快捷键
c.QuickPasteHotkey = in.GetQuickPasteHotkey()
c.QuickPasteCopyOnly = in.GetQuickPasteCopyOnly()
+ // 旧界面不带这一项,不改
+ if m := in.GetQuickPasteIndexModifier(); m != "" {
+ c.QuickPasteIndexModifier = m
+ }
// 空字符串就是系统的「下载」文件夹
c.ReceiveDir = in.GetReceiveDir()
c.ReceiveDisabled = in.GetReceiveDisabled()
diff --git a/design/quick-paste-and-favorites.md b/design/quick-paste-and-favorites.md
index 7f07ff4..6f5d264 100644
--- a/design/quick-paste-and-favorites.md
+++ b/design/quick-paste-and-favorites.md
@@ -11,7 +11,7 @@
1. **快捷粘贴窗口**
- 在任何程序里按 ⌥V(Mac)/ Alt+V(Windows、Linux),弹出一个小窗口,列出复制记录,从其他设备收到的也在里面。
- - 可以用 ⌘ 或 Alt 加数字、方向键加回车或者鼠标单击来选。选中后写回剪贴板,并自动粘贴到原来的输入位置。
+ - 可以用 ⌥ 或 Alt 加数字(设置里可以换成 ⌘、⌃ 或 Ctrl)、方向键加回车或者鼠标单击来选。选中后写回剪贴板,并自动粘贴到原来的输入位置。
- 默认开启,设置里可以关闭。
2. **收藏**
- 和微信的收藏一样,收藏时另存一份,永远不会被自动清理。
@@ -72,7 +72,7 @@
- 来源设备(只有从其他设备收到的才显示);
- 时间。
- 每行最左边是序号:
- - 当前列表的前 9 条标 ⌘1–⌘9(Windows、Linux 上是 Alt+1–Alt+9),按对应的组合键就粘贴那一条。第 10 条起不标序号。
+ - 当前列表的前 9 条标 ⌥1–⌥9(Windows、Linux 上是 Alt+1–Alt+9),按对应的组合键就粘贴那一条。修饰键在设置里可以换:Mac 上 ⌥、⌘、⌃,Windows、Linux 上 Alt、Ctrl(2.6.3 起;2.6.2 在 Mac 上固定用 ⌘)。第 10 条起不标序号。
- 切换页签、搜索时,都按新的列表重新编号。
- 直接按数字永远是在搜索框里打字,好搜快递单号、电话这类数字(2.6.2 起;之前搜索框为空时直接按数字会粘贴那一条,想搜数字搜不了)。
- 序号跟着条目走,不随滚动变化。
@@ -91,7 +91,7 @@
| 按键 | 作用 |
|---|---|
-| ⌘1–9(Mac)/ Alt+1–9 | 粘贴对应的一条 |
+| ⌥1–9(Mac)/ Alt+1–9,可在设置里换 | 粘贴对应的一条 |
| 1–9 | 在搜索框里打字 |
| ↑ ↓(Mac 上还有 ⌃P ⌃N) | 移动选择 |
| 回车 | 粘贴选中的一条 |
@@ -163,16 +163,16 @@
╰──────────────────────────────────────────────────────╯
```
-**搜索时**:输入「docker」后,按新的列表重新编号 ⌘1、⌘2……
+**搜索时**:输入「docker」后,按新的列表重新编号 ⌥1、⌥2……
```
╭──────────────────────────────────────────────────────╮
│ ⌕ docker▏
│ [全部] 文字 链接 图片 文件 收藏
├──────────────────────────────────────────────────────┤
-│▌⌘1 ¶ docker compose up -d --build · 1 小时前
-│ ⌘2 ¶ docker logs -f gateway · 2 天前
-│ ⌘3 ¶ 把 docker 镜像源换成国内的 … · 2 天前
+│▌⌥1 ¶ docker compose up -d --build · 1 小时前
+│ ⌥2 ¶ docker logs -f gateway · 2 天前
+│ ⌥3 ¶ 把 docker 镜像源换成国内的 … · 2 天前
├──────────────────────────────────────────────────────┤
│ ↩ 粘贴 ⇧↩ 纯文本 ⌘↩ 只复制 ⌘D 收藏 esc 清空搜索
╰──────────────────────────────────────────────────────╯
@@ -790,7 +790,7 @@ service DaemonService {
1. 快捷粘贴窗口默认开启,设置里可以关闭。
2. Mac 先按 ⌥V 做原型。第 12 节第 1 条验证不通过,再在 ⌃⌥V 和其他组合里选。
3. Mac 改用自签名证书签名,在零期单独发版。
-4. 保留数字键,列表前 9 条显示序号。2.6.2 起选行要按住 ⌘ 或 Alt,直接按数字是打字(用户反馈搜不了数字)。
+4. 保留数字键,列表前 9 条显示序号。2.6.2 起选行要按住 ⌘ 或 Alt,直接按数字是打字(用户反馈搜不了数字)。2.6.3 起 Mac 上默认改用 ⌥(与 Windows、Linux 的 Alt 同一个位置),修饰键可以在设置里换。
5. 快捷窗口有页签筛选,鼠标悬停显示完整内容;主窗口的「复制记录」页、「收藏」页也有悬停提示框。
6. 收藏时另存一份,包括本机复制的文件。
7. 取消收藏就放回复制记录的最上面;收藏里没有删除;「清空」不影响收藏。
diff --git a/docs/assets/screenshots/card-picker-dark.png b/docs/assets/screenshots/card-picker-dark.png
index fceae5b..31a62c0 100644
Binary files a/docs/assets/screenshots/card-picker-dark.png and b/docs/assets/screenshots/card-picker-dark.png differ
diff --git a/docs/assets/screenshots/card-picker-search-dark.png b/docs/assets/screenshots/card-picker-search-dark.png
index 08945f3..af1171c 100644
Binary files a/docs/assets/screenshots/card-picker-search-dark.png and b/docs/assets/screenshots/card-picker-search-dark.png differ
diff --git a/docs/assets/screenshots/en/card-picker-dark.png b/docs/assets/screenshots/en/card-picker-dark.png
index 5d82afc..3a9a07f 100644
Binary files a/docs/assets/screenshots/en/card-picker-dark.png and b/docs/assets/screenshots/en/card-picker-dark.png differ
diff --git a/docs/assets/screenshots/en/card-picker-search-dark.png b/docs/assets/screenshots/en/card-picker-search-dark.png
index 2193b10..10b1c2d 100644
Binary files a/docs/assets/screenshots/en/card-picker-search-dark.png and b/docs/assets/screenshots/en/card-picker-search-dark.png differ
diff --git a/docs/assets/screenshots/ja/card-picker-dark.png b/docs/assets/screenshots/ja/card-picker-dark.png
index 7959ae5..d02d75d 100644
Binary files a/docs/assets/screenshots/ja/card-picker-dark.png and b/docs/assets/screenshots/ja/card-picker-dark.png differ
diff --git a/docs/assets/screenshots/ja/card-picker-search-dark.png b/docs/assets/screenshots/ja/card-picker-search-dark.png
index f38ee38..a61b615 100644
Binary files a/docs/assets/screenshots/ja/card-picker-search-dark.png and b/docs/assets/screenshots/ja/card-picker-search-dark.png differ
diff --git a/docs/assets/screenshots/zh-hk/card-picker-dark.png b/docs/assets/screenshots/zh-hk/card-picker-dark.png
index 29864ba..05455df 100644
Binary files a/docs/assets/screenshots/zh-hk/card-picker-dark.png and b/docs/assets/screenshots/zh-hk/card-picker-dark.png differ
diff --git a/docs/assets/screenshots/zh-hk/card-picker-search-dark.png b/docs/assets/screenshots/zh-hk/card-picker-search-dark.png
index 93d9ca6..ade5fba 100644
Binary files a/docs/assets/screenshots/zh-hk/card-picker-search-dark.png and b/docs/assets/screenshots/zh-hk/card-picker-search-dark.png differ
diff --git a/docs/assets/screenshots/zh-tw/card-picker-dark.png b/docs/assets/screenshots/zh-tw/card-picker-dark.png
index e50e22f..652543f 100644
Binary files a/docs/assets/screenshots/zh-tw/card-picker-dark.png and b/docs/assets/screenshots/zh-tw/card-picker-dark.png differ
diff --git a/docs/assets/screenshots/zh-tw/card-picker-search-dark.png b/docs/assets/screenshots/zh-tw/card-picker-search-dark.png
index 30bc582..e8e92cd 100644
Binary files a/docs/assets/screenshots/zh-tw/card-picker-search-dark.png and b/docs/assets/screenshots/zh-tw/card-picker-search-dark.png differ
diff --git a/docs/en/features/index.html b/docs/en/features/index.html
index 5f5210e..9da8b41 100644
--- a/docs/en/features/index.html
+++ b/docs/en/features/index.html
@@ -166,13 +166,13 @@
<div class="picker">
<div class="qp-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="field"><span class="q">meeting</span><i class="caret"></i><span class="ph">Search</span></span></div>
<div class="qp-tabs"><span class="on">All</span><span>Text</span><span>Links</span><span>Images</span><span>Files</span><span>Favorites</span></div>
- <ol class="qp-rows"><li class="qp-row top"><span class="n n-all"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">Send me the deck by 7 pm</span><span class="m">Just now</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 minutes ago</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘3</span><span class="k-pc">Alt+3</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">Image</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows PC · 5 minutes ago</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘4</span><span class="k-pc">Alt+4</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">signed-contract.pdf and 2 more</span><span class="m">52 minutes ago</span></li><li class="qp-row hit first"><span class="n n-all"><span class="k-mac">⌘5</span><span class="k-pc">Alt+5</span></span><span class="n n-hit"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">Meeting link: https://meeting.example.com/j/8823</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 hour ago</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘6</span><span class="k-pc">Alt+6</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 hour ago</span></li><li class="qp-row hit"><span class="n n-all"><span class="k-mac">⌘7</span><span class="k-pc">Alt+7</span></span><span class="n n-hit"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">Meeting notes are in the shared folder</span><span class="m">Yesterday</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘8</span><span class="k-pc">Alt+8</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">Yesterday</span></li></ol>
+ <ol class="qp-rows"><li class="qp-row top"><span class="n n-all"><span class="k-mac">⌥1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">Send me the deck by 7 pm</span><span class="m">Just now</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 minutes ago</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥3</span><span class="k-pc">Alt+3</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">Image</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows PC · 5 minutes ago</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥4</span><span class="k-pc">Alt+4</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">signed-contract.pdf and 2 more</span><span class="m">52 minutes ago</span></li><li class="qp-row hit first"><span class="n n-all"><span class="k-mac">⌥5</span><span class="k-pc">Alt+5</span></span><span class="n n-hit"><span class="k-mac">⌥1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">Meeting link: https://meeting.example.com/j/8823</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 hour ago</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥6</span><span class="k-pc">Alt+6</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 hour ago</span></li><li class="qp-row hit"><span class="n n-all"><span class="k-mac">⌥7</span><span class="k-pc">Alt+7</span></span><span class="n n-hit"><span class="k-mac">⌥2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">Meeting notes are in the shared folder</span><span class="m">Yesterday</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥8</span><span class="k-pc">Alt+8</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">Yesterday</span></li></ol>
<div class="qp-foot"><span><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd>Paste</span><span><kbd class="k-mac">⇧↩</kbd><kbd class="k-pc">Shift+Enter</kbd>Plain text</span><span><kbd class="k-mac">⌘↩</kbd><kbd class="k-pc">Ctrl+Enter</kbd>Copy only</span><span><kbd class="k-mac">⌘D</kbd><kbd class="k-pc">Ctrl+D</kbd>Add to favorites</span><span><kbd class="k-mac">esc</kbd><kbd class="k-pc">Esc</kbd>Close</span></div>
</div>
</div>
<ol class="qp-steps">
<li data-step="0"><span class="num">1</span><h3>Press <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span></h3><p>Works in any app.</p></li>
- <li data-step="1"><span class="num">2</span><h3>Type a few letters</h3><p>Search text and file names, or press <span class="k-mac">⌘1–9</span><span class="k-pc">Alt+1–9</span>.</p></li>
+ <li data-step="1"><span class="num">2</span><h3>Type a few letters</h3><p>Search text and file names, or press <span class="k-mac">⌥1–9</span><span class="k-pc">Alt+1–9</span>.</p></li>
<li data-step="2"><span class="num">3</span><h3>Press <span class="k-mac">↩</span><span class="k-pc">Enter</span>. Done.</h3><p><span class="k-mac">⇧↩</span><span class="k-pc">Shift+Enter</span> for plain text, <span class="k-mac">⌘↩</span><span class="k-pc">Ctrl+Enter</span> to copy only.</p></li>
</ol>
</div>
diff --git a/docs/features/index.html b/docs/features/index.html
index 790a621..0be436c 100644
--- a/docs/features/index.html
+++ b/docs/features/index.html
@@ -166,13 +166,13 @@
<div class="picker">
<div class="qp-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="field"><span class="q">会议</span><i class="caret"></i><span class="ph">搜索</span></span></div>
<div class="qp-tabs"><span class="on">全部</span><span>文本</span><span>链接</span><span>图片</span><span>文件</span><span>收藏</span></div>
- <ol class="qp-rows"><li class="qp-row top"><span class="n n-all"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">晚上 7 点前把方案发我</span><span class="m">刚刚</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 分钟前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘3</span><span class="k-pc">Alt+3</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">图片</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows 台式机 · 5 分钟前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘4</span><span class="k-pc">Alt+4</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">合同扫描件.pdf 等 3 项</span><span class="m">52 分钟前</span></li><li class="qp-row hit first"><span class="n n-all"><span class="k-mac">⌘5</span><span class="k-pc">Alt+5</span></span><span class="n n-hit"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">会议链接:https://meeting.example.com/j/8823</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 小时前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘6</span><span class="k-pc">Alt+6</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 小时前</span></li><li class="qp-row hit"><span class="n n-all"><span class="k-mac">⌘7</span><span class="k-pc">Alt+7</span></span><span class="n n-hit"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">会议纪要发到群里了</span><span class="m">1 天前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘8</span><span class="k-pc">Alt+8</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">1 天前</span></li></ol>
+ <ol class="qp-rows"><li class="qp-row top"><span class="n n-all"><span class="k-mac">⌥1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">晚上 7 点前把方案发我</span><span class="m">刚刚</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 分钟前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥3</span><span class="k-pc">Alt+3</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">图片</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows 台式机 · 5 分钟前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥4</span><span class="k-pc">Alt+4</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">合同扫描件.pdf 等 3 项</span><span class="m">52 分钟前</span></li><li class="qp-row hit first"><span class="n n-all"><span class="k-mac">⌥5</span><span class="k-pc">Alt+5</span></span><span class="n n-hit"><span class="k-mac">⌥1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">会议链接:https://meeting.example.com/j/8823</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 小时前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥6</span><span class="k-pc">Alt+6</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 小时前</span></li><li class="qp-row hit"><span class="n n-all"><span class="k-mac">⌥7</span><span class="k-pc">Alt+7</span></span><span class="n n-hit"><span class="k-mac">⌥2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">会议纪要发到群里了</span><span class="m">1 天前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥8</span><span class="k-pc">Alt+8</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">1 天前</span></li></ol>
<div class="qp-foot"><span><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd>粘贴</span><span><kbd class="k-mac">⇧↩</kbd><kbd class="k-pc">Shift+Enter</kbd>纯文本</span><span><kbd class="k-mac">⌘↩</kbd><kbd class="k-pc">Ctrl+Enter</kbd>只复制</span><span><kbd class="k-mac">⌘D</kbd><kbd class="k-pc">Ctrl+D</kbd>收藏</span><span><kbd class="k-mac">esc</kbd><kbd class="k-pc">Esc</kbd>关闭</span></div>
</div>
</div>
<ol class="qp-steps">
<li data-step="0"><span class="num">1</span><h3>按下 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span></h3><p>在任何 App 里都行。</p></li>
- <li data-step="1"><span class="num">2</span><h3>打几个字</h3><p>文字和文件名都能搜,前 9 条按 <span class="k-mac">⌘1–9</span><span class="k-pc">Alt+1–9</span> 选。</p></li>
+ <li data-step="1"><span class="num">2</span><h3>打几个字</h3><p>文字和文件名都能搜,前 9 条按 <span class="k-mac">⌥1–9</span><span class="k-pc">Alt+1–9</span> 选。</p></li>
<li data-step="2"><span class="num">3</span><h3>按 <span class="k-mac">↩</span><span class="k-pc">Enter</span>,就贴好了</h3><p><span class="k-mac">⇧↩</span><span class="k-pc">Shift+Enter</span> 粘贴纯文本,<span class="k-mac">⌘↩</span><span class="k-pc">Ctrl+Enter</span> 只复制。</p></li>
</ol>
</div>
diff --git a/docs/ja/features/index.html b/docs/ja/features/index.html
index e61bb40..c2cb2f5 100644
--- a/docs/ja/features/index.html
+++ b/docs/ja/features/index.html
@@ -166,13 +166,13 @@
<div class="picker">
<div class="qp-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="field"><span class="q">会議</span><i class="caret"></i><span class="ph">検索</span></span></div>
<div class="qp-tabs"><span class="on">すべて</span><span>テキスト</span><span>リンク</span><span>画像</span><span>ファイル</span><span>お気に入り</span></div>
- <ol class="qp-rows"><li class="qp-row top"><span class="n n-all"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">19 時までに資料を送ってください</span><span class="m">たった今</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 分前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘3</span><span class="k-pc">Alt+3</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">画像</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows デスクトップ · 5 分前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘4</span><span class="k-pc">Alt+4</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">契約書_署名済み.pdf ほか 2 件</span><span class="m">52 分前</span></li><li class="qp-row hit first"><span class="n n-all"><span class="k-mac">⌘5</span><span class="k-pc">Alt+5</span></span><span class="n n-hit"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">会議リンク:https://meeting.example.com/j/8823</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 時間前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘6</span><span class="k-pc">Alt+6</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 時間前</span></li><li class="qp-row hit"><span class="n n-all"><span class="k-mac">⌘7</span><span class="k-pc">Alt+7</span></span><span class="n n-hit"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">会議メモを共有フォルダに置きました</span><span class="m">1 日前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘8</span><span class="k-pc">Alt+8</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">1 日前</span></li></ol>
+ <ol class="qp-rows"><li class="qp-row top"><span class="n n-all"><span class="k-mac">⌥1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">19 時までに資料を送ってください</span><span class="m">たった今</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 分前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥3</span><span class="k-pc">Alt+3</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">画像</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows デスクトップ · 5 分前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥4</span><span class="k-pc">Alt+4</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">契約書_署名済み.pdf ほか 2 件</span><span class="m">52 分前</span></li><li class="qp-row hit first"><span class="n n-all"><span class="k-mac">⌥5</span><span class="k-pc">Alt+5</span></span><span class="n n-hit"><span class="k-mac">⌥1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">会議リンク:https://meeting.example.com/j/8823</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 時間前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥6</span><span class="k-pc">Alt+6</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 時間前</span></li><li class="qp-row hit"><span class="n n-all"><span class="k-mac">⌥7</span><span class="k-pc">Alt+7</span></span><span class="n n-hit"><span class="k-mac">⌥2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">会議メモを共有フォルダに置きました</span><span class="m">1 日前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥8</span><span class="k-pc">Alt+8</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">1 日前</span></li></ol>
<div class="qp-foot"><span><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd>ペースト</span><span><kbd class="k-mac">⇧↩</kbd><kbd class="k-pc">Shift+Enter</kbd>プレーンテキスト</span><span><kbd class="k-mac">⌘↩</kbd><kbd class="k-pc">Ctrl+Enter</kbd>コピーのみ</span><span><kbd class="k-mac">⌘D</kbd><kbd class="k-pc">Ctrl+D</kbd>お気に入りに追加</span><span><kbd class="k-mac">esc</kbd><kbd class="k-pc">Esc</kbd>閉じる</span></div>
</div>
</div>
<ol class="qp-steps">
<li data-step="0"><span class="num">1</span><h3><span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span> を押す</h3><p>どのアプリでも使えます。</p></li>
- <li data-step="1"><span class="num">2</span><h3>数文字を入力</h3><p>テキストもファイル名も検索。<span class="k-mac">⌘1–9</span><span class="k-pc">Alt+1–9</span> で直接選べます。</p></li>
+ <li data-step="1"><span class="num">2</span><h3>数文字を入力</h3><p>テキストもファイル名も検索。<span class="k-mac">⌥1–9</span><span class="k-pc">Alt+1–9</span> で直接選べます。</p></li>
<li data-step="2"><span class="num">3</span><h3><span class="k-mac">↩</span><span class="k-pc">Enter</span> を押せば完了</h3><p><span class="k-mac">⇧↩</span><span class="k-pc">Shift+Enter</span> でプレーンテキスト、<span class="k-mac">⌘↩</span><span class="k-pc">Ctrl+Enter</span> でコピーのみ。</p></li>
</ol>
</div>
diff --git a/docs/zh-hk/features/index.html b/docs/zh-hk/features/index.html
index e7e529d..643e899 100644
--- a/docs/zh-hk/features/index.html
+++ b/docs/zh-hk/features/index.html
@@ -166,13 +166,13 @@
<div class="picker">
<div class="qp-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="field"><span class="q">會議</span><i class="caret"></i><span class="ph">搜尋</span></span></div>
<div class="qp-tabs"><span class="on">全部</span><span>文字</span><span>連結</span><span>圖片</span><span>檔案</span><span>收藏</span></div>
- <ol class="qp-rows"><li class="qp-row top"><span class="n n-all"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">晚上 7 點前把方案傳給我</span><span class="m">剛剛</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 分鐘前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘3</span><span class="k-pc">Alt+3</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">圖片</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows 桌面電腦 · 5 分鐘前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘4</span><span class="k-pc">Alt+4</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">合約掃描本.pdf 等 3 項</span><span class="m">52 分鐘前</span></li><li class="qp-row hit first"><span class="n n-all"><span class="k-mac">⌘5</span><span class="k-pc">Alt+5</span></span><span class="n n-hit"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">會議連結:https://meeting.example.com/j/8823</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 小時前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘6</span><span class="k-pc">Alt+6</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 小時前</span></li><li class="qp-row hit"><span class="n n-all"><span class="k-mac">⌘7</span><span class="k-pc">Alt+7</span></span><span class="n n-hit"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">會議記錄已經放到群組</span><span class="m">1 天前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘8</span><span class="k-pc">Alt+8</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">1 天前</span></li></ol>
+ <ol class="qp-rows"><li class="qp-row top"><span class="n n-all"><span class="k-mac">⌥1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">晚上 7 點前把方案傳給我</span><span class="m">剛剛</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 分鐘前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥3</span><span class="k-pc">Alt+3</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">圖片</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows 桌面電腦 · 5 分鐘前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥4</span><span class="k-pc">Alt+4</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">合約掃描本.pdf 等 3 項</span><span class="m">52 分鐘前</span></li><li class="qp-row hit first"><span class="n n-all"><span class="k-mac">⌥5</span><span class="k-pc">Alt+5</span></span><span class="n n-hit"><span class="k-mac">⌥1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">會議連結:https://meeting.example.com/j/8823</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 小時前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥6</span><span class="k-pc">Alt+6</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 小時前</span></li><li class="qp-row hit"><span class="n n-all"><span class="k-mac">⌥7</span><span class="k-pc">Alt+7</span></span><span class="n n-hit"><span class="k-mac">⌥2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">會議記錄已經放到群組</span><span class="m">1 天前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥8</span><span class="k-pc">Alt+8</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">1 天前</span></li></ol>
<div class="qp-foot"><span><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd>貼上</span><span><kbd class="k-mac">⇧↩</kbd><kbd class="k-pc">Shift+Enter</kbd>純文字</span><span><kbd class="k-mac">⌘↩</kbd><kbd class="k-pc">Ctrl+Enter</kbd>只複製</span><span><kbd class="k-mac">⌘D</kbd><kbd class="k-pc">Ctrl+D</kbd>收藏</span><span><kbd class="k-mac">esc</kbd><kbd class="k-pc">Esc</kbd>關閉</span></div>
</div>
</div>
<ol class="qp-steps">
<li data-step="0"><span class="num">1</span><h3>按下 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span></h3><p>在任何程式裏都可以。</p></li>
- <li data-step="1"><span class="num">2</span><h3>打幾個字</h3><p>文字和檔案名稱都能搜,前 9 項按 <span class="k-mac">⌘1–9</span><span class="k-pc">Alt+1–9</span> 選。</p></li>
+ <li data-step="1"><span class="num">2</span><h3>打幾個字</h3><p>文字和檔案名稱都能搜,前 9 項按 <span class="k-mac">⌥1–9</span><span class="k-pc">Alt+1–9</span> 選。</p></li>
<li data-step="2"><span class="num">3</span><h3>按 <span class="k-mac">↩</span><span class="k-pc">Enter</span>,就貼好了</h3><p><span class="k-mac">⇧↩</span><span class="k-pc">Shift+Enter</span> 貼上純文字,<span class="k-mac">⌘↩</span><span class="k-pc">Ctrl+Enter</span> 只複製。</p></li>
</ol>
</div>
diff --git a/docs/zh-tw/features/index.html b/docs/zh-tw/features/index.html
index 13b4152..0eeea24 100644
--- a/docs/zh-tw/features/index.html
+++ b/docs/zh-tw/features/index.html
@@ -166,13 +166,13 @@
<div class="picker">
<div class="qp-search"><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.4 10.4 3.4 3.4"/></svg><span class="field"><span class="q">會議</span><i class="caret"></i><span class="ph">搜尋</span></span></div>
<div class="qp-tabs"><span class="on">全部</span><span>文字</span><span>連結</span><span>圖片</span><span>檔案</span><span>收藏</span></div>
- <ol class="qp-rows"><li class="qp-row top"><span class="n n-all"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">晚上 7 點前把方案傳給我</span><span class="m">剛剛</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 分鐘前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘3</span><span class="k-pc">Alt+3</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">圖片</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows 桌機 · 5 分鐘前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘4</span><span class="k-pc">Alt+4</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">合約掃描檔.pdf 等 3 項</span><span class="m">52 分鐘前</span></li><li class="qp-row hit first"><span class="n n-all"><span class="k-mac">⌘5</span><span class="k-pc">Alt+5</span></span><span class="n n-hit"><span class="k-mac">⌘1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">會議連結:https://meeting.example.com/j/8823</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 小時前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘6</span><span class="k-pc">Alt+6</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 小時前</span></li><li class="qp-row hit"><span class="n n-all"><span class="k-mac">⌘7</span><span class="k-pc">Alt+7</span></span><span class="n n-hit"><span class="k-mac">⌘2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">會議記錄傳到群組了</span><span class="m">1 天前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌘8</span><span class="k-pc">Alt+8</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">1 天前</span></li></ol>
+ <ol class="qp-rows"><li class="qp-row top"><span class="n n-all"><span class="k-mac">⌥1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">晚上 7 點前把方案傳給我</span><span class="m">剛剛</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.6 9.4a2.6 2.6 0 0 0 3.7 0l2.2-2.2a2.6 2.6 0 0 0-3.7-3.7L7.7 4.6"/><path d="M9.4 6.6a2.6 2.6 0 0 0-3.7 0L3.5 8.8a2.6 2.6 0 0 0 3.7 3.7l1.1-1.1"/></svg><span class="t">https://github.com/baiyuze/pasteferry</span><span class="m">2 分鐘前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥3</span><span class="k-pc">Alt+3</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="12" height="10" rx="1.6"/><circle cx="5.6" cy="6.4" r="1.1"/><path d="m2.4 12 3.8-3.6 2.6 2.4 2-1.8 2.8 2.6"/></svg><span class="t">圖片</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>Windows 桌機 · 5 分鐘前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥4</span><span class="k-pc">Alt+4</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 4.5V3.2c0-.5.4-.9.9-.9h3.8l2.6 2.6v6.4c0 .5-.4.9-.9.9h-1.4"/><path d="M3.5 5.6c0-.5.4-.9.9-.9h3.6l2.5 2.5v5.9c0 .5-.4.9-.9.9H4.4a.9.9 0 0 1-.9-.9z"/></svg><span class="t">合約掃描檔.pdf 等 3 項</span><span class="m">52 分鐘前</span></li><li class="qp-row hit first"><span class="n n-all"><span class="k-mac">⌥5</span><span class="k-pc">Alt+5</span></span><span class="n n-hit"><span class="k-mac">⌥1</span><span class="k-pc">Alt+1</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">會議連結:https://meeting.example.com/j/8823</span><span class="m"><svg class="star" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="m8 1.6 1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.4l-3.8 2 .7-4.3-3.1-3 4.3-.6z"/></svg>1 小時前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥6</span><span class="k-pc">Alt+6</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">docker compose up -d --build</span><span class="m">1 小時前</span></li><li class="qp-row hit"><span class="n n-all"><span class="k-mac">⌥7</span><span class="k-pc">Alt+7</span></span><span class="n n-hit"><span class="k-mac">⌥2</span><span class="k-pc">Alt+2</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">會議記錄傳到群組了</span><span class="m">1 天前</span></li><li class="qp-row"><span class="n n-all"><span class="k-mac">⌥8</span><span class="k-pc">Alt+8</span></span><svg class="ico" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 4.5h10M3 8h10M3 11.5h6.5"/></svg><span class="t">pnpm install</span><span class="m">1 天前</span></li></ol>
<div class="qp-foot"><span><kbd class="k-mac">↩</kbd><kbd class="k-pc">Enter</kbd>貼上</span><span><kbd class="k-mac">⇧↩</kbd><kbd class="k-pc">Shift+Enter</kbd>純文字</span><span><kbd class="k-mac">⌘↩</kbd><kbd class="k-pc">Ctrl+Enter</kbd>只複製</span><span><kbd class="k-mac">⌘D</kbd><kbd class="k-pc">Ctrl+D</kbd>收藏</span><span><kbd class="k-mac">esc</kbd><kbd class="k-pc">Esc</kbd>關閉</span></div>
</div>
</div>
<ol class="qp-steps">
<li data-step="0"><span class="num">1</span><h3>按下 <span class="k-mac">⌥V</span><span class="k-pc">Alt+V</span></h3><p>在任何 App 裡都行。</p></li>
- <li data-step="1"><span class="num">2</span><h3>打幾個字</h3><p>文字和檔名都能搜,前 9 筆按 <span class="k-mac">⌘1–9</span><span class="k-pc">Alt+1–9</span> 選。</p></li>
+ <li data-step="1"><span class="num">2</span><h3>打幾個字</h3><p>文字和檔名都能搜,前 9 筆按 <span class="k-mac">⌥1–9</span><span class="k-pc">Alt+1–9</span> 選。</p></li>
<li data-step="2"><span class="num">3</span><h3>按 <span class="k-mac">↩</span><span class="k-pc">Enter</span>,就貼好了</h3><p><span class="k-mac">⇧↩</span><span class="k-pc">Shift+Enter</span> 貼上純文字,<span class="k-mac">⌘↩</span><span class="k-pc">Ctrl+Enter</span> 只複製。</p></li>
</ol>
</div>
diff --git a/proto/gen/pasteferry/v1/daemon.pb.go b/proto/gen/pasteferry/v1/daemon.pb.go
index 6198bc3..2a32a02 100644
--- a/proto/gen/pasteferry/v1/daemon.pb.go
+++ b/proto/gen/pasteferry/v1/daemon.pb.go
@@ -3667,9 +3667,12 @@ type Config struct {
// 「所有人」在这个时间自动回到「仅限好友」,Unix 秒。打开「所有人」时由后台服务填上
EveryoneUntilUnix int64 `protobuf:"varint,31,opt,name=everyone_until_unix,json=everyoneUntilUnix,proto3" json:"everyone_until_unix,omitempty"`
// 好友看到的名字,空表示系统的用户全名
- DisplayName string `protobuf:"bytes,32,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
+ DisplayName string `protobuf:"bytes,32,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
+ // 快捷粘贴窗口里按住哪个修饰键再按 1–9 粘贴对应的那一条(2.6.3):"alt"、"meta"、"ctrl"。
+ // 空字符串表示默认:各平台都是 alt(Mac 上是 ⌥)
+ QuickPasteIndexModifier string `protobuf:"bytes,33,opt,name=quick_paste_index_modifier,json=quickPasteIndexModifier,proto3" json:"quick_paste_index_modifier,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
func (x *Config) Reset() {
@@ -3926,6 +3929,13 @@ func (x *Config) GetDisplayName() string {
return ""
}
+func (x *Config) GetQuickPasteIndexModifier() string {
+ if x != nil {
+ return x.QuickPasteIndexModifier
+ }
+ return ""
+}
+
type OfficialUsage struct {
state protoimpl.MessageState `protogen:"open.v1"`
Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"`
@@ -6185,8 +6195,7 @@ const file_pasteferry_v1_daemon_proto_rawDesc = "" +
"\x04kind\x18\x01 \x01(\x0e2\x1d.pasteferry.v1.ConnectionKindR\x04kind\"P\n" +
"\x17SetDeviceAddressRequest\x12\x1b\n" +
"\tdevice_id\x18\x01 \x01(\tR\bdeviceId\x12\x18\n" +
- "\aaddress\x18\x02 \x01(\tR\aaddress\"\xe8\n" +
- "\n" +
+ "\aaddress\x18\x02 \x01(\tR\aaddress\"\xa5\v\n" +
"\x06Config\x129\n" +
"\x19auto_sync_threshold_bytes\x18\x01 \x01(\x03R\x16autoSyncThresholdBytes\x12.\n" +
"\x13history_ttl_seconds\x18\x02 \x01(\x03R\x11historyTtlSeconds\x12*\n" +
@@ -6223,7 +6232,8 @@ const file_pasteferry_v1_daemon_proto_rawDesc = "" +
"\x13sync_disabled_peers\x18\x1d \x03(\tR\x11syncDisabledPeers\x12!\n" +
"\freceive_from\x18\x1e \x01(\tR\vreceiveFrom\x12.\n" +
"\x13everyone_until_unix\x18\x1f \x01(\x03R\x11everyoneUntilUnix\x12!\n" +
- "\fdisplay_name\x18 \x01(\tR\vdisplayName\"\xd8\x02\n" +
+ "\fdisplay_name\x18 \x01(\tR\vdisplayName\x12;\n" +
+ "\x1aquick_paste_index_modifier\x18! \x01(\tR\x17quickPasteIndexModifier\"\xd8\x02\n" +
"\rOfficialUsage\x12\x1c\n" +
"\tavailable\x18\x01 \x01(\bR\tavailable\x12\x10\n" +
"\x03day\x18\x02 \x01(\tR\x03day\x12\x1f\n" +
diff --git a/proto/pasteferry/v1/daemon.proto b/proto/pasteferry/v1/daemon.proto
index 8fddb71..8c8ab36 100644
--- a/proto/pasteferry/v1/daemon.proto
+++ b/proto/pasteferry/v1/daemon.proto
@@ -633,6 +633,9 @@ message Config {
int64 everyone_until_unix = 31;
// 好友看到的名字,空表示系统的用户全名
string display_name = 32;
+ // 快捷粘贴窗口里按住哪个修饰键再按 1–9 粘贴对应的那一条(2.6.3):"alt"、"meta"、"ctrl"。
+ // 空字符串表示默认:各平台都是 alt(Mac 上是 ⌥)
+ string quick_paste_index_modifier = 33;
}
enum ServiceMode {
diff --git a/tools/site/build.py b/tools/site/build.py
index 89882ea..84ac429 100644
--- a/tools/site/build.py
+++ b/tools/site/build.py
@@ -129,7 +129,7 @@ KEYS = {
"fav": ("⌘D", "Ctrl+D"),
"paste": ("⌘V", "Ctrl+V"),
"copy": ("⌘C", "Ctrl+C"),
- "index": ("⌘1–9", "Alt+1–9"),
+ "index": ("⌥1–9", "Alt+1–9"),
}
PLATFORM = (' <script>document.documentElement.classList.add("js");'
'if (!/Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent)) '
@@ -727,9 +727,9 @@ def qp_demo(f: dict, app: dict) -> str:
for i, (kind, text, meta, starred, match) in enumerate(f["qp_rows"]):
if match:
hit += 1
- num = (f'<span class="n n-all"><span class="k-mac">⌘{i + 1}</span><span class="k-pc">Alt+{i + 1}</span></span>'
+ num = (f'<span class="n n-all"><span class="k-mac">⌥{i + 1}</span><span class="k-pc">Alt+{i + 1}</span></span>'
if i < 9 else '<span class="n n-all"></span>')
- search_num = (f'<span class="n n-hit"><span class="k-mac">⌘{hit}</span><span class="k-pc">Alt+{hit}</span></span>'
+ search_num = (f'<span class="n n-hit"><span class="k-mac">⌥{hit}</span><span class="k-pc">Alt+{hit}</span></span>'
if match else "")
rows.append(
f'<li class="qp-row{" hit" if match else ""}{" first" if match and hit == 1 else ""}{" top" if i == 0 else ""}">'
diff --git a/tools/site/content/features.py b/tools/site/content/features.py
index e9d2794..d8f152a 100644
--- a/tools/site/content/features.py
+++ b/tools/site/content/features.py
@@ -2,7 +2,7 @@
按键写成占位符,生成页面时换成 Mac 与 Windows、Linux 两种写法,由 site.js 按访问者的系统显示其中一种:
{key} ⌥V / Alt+V,{enter} ↩ / Enter,{plain} ⇧↩ / Shift+Enter,{copyonly} ⌘↩ / Ctrl+Enter,
-{fav} ⌘D / Ctrl+D,{paste} ⌘V / Ctrl+V,{copy} ⌘C / Ctrl+C,{index} ⌘1–9 / Alt+1–9。
+{fav} ⌘D / Ctrl+D,{paste} ⌘V / Ctrl+V,{copy} ⌘C / Ctrl+C,{index} ⌥1–9 / Alt+1–9。
快捷窗口演示里的页签、底栏等界面文字直接取自 App 的文案(ui/tool/l10n/strings.py),和 App 里一模一样。
"""
diff --git a/ui/lib/gen/pasteferry/v1/daemon.pb.dart b/ui/lib/gen/pasteferry/v1/daemon.pb.dart
index 932fd51..2de688d 100644
--- a/ui/lib/gen/pasteferry/v1/daemon.pb.dart
+++ b/ui/lib/gen/pasteferry/v1/daemon.pb.dart
@@ -4278,6 +4278,7 @@ class Config extends $pb.GeneratedMessage {
$core.String? receiveFrom,
$fixnum.Int64? everyoneUntilUnix,
$core.String? displayName,
+ $core.String? quickPasteIndexModifier,
}) {
final result = Config._();
if (autoSyncThresholdBytes != null)
@@ -4321,6 +4322,8 @@ class Config extends $pb.GeneratedMessage {
if (receiveFrom != null) result.receiveFrom = receiveFrom;
if (everyoneUntilUnix != null) result.everyoneUntilUnix = everyoneUntilUnix;
if (displayName != null) result.displayName = displayName;
+ if (quickPasteIndexModifier != null)
+ result.quickPasteIndexModifier = quickPasteIndexModifier;
return result;
}
@@ -4370,6 +4373,7 @@ class Config extends $pb.GeneratedMessage {
..aOS(30, _omitFieldNames ? '' : 'receiveFrom')
..aInt64(31, _omitFieldNames ? '' : 'everyoneUntilUnix')
..aOS(32, _omitFieldNames ? '' : 'displayName')
+ ..aOS(33, _omitFieldNames ? '' : 'quickPasteIndexModifier')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@@ -4696,6 +4700,17 @@ class Config extends $pb.GeneratedMessage {
$core.bool hasDisplayName() => $_has(31);
@$pb.TagNumber(32)
void clearDisplayName() => $_clearField(32);
+
+ /// 快捷粘贴窗口里按住哪个修饰键再按 1–9 粘贴对应的那一条(2.6.3):"alt"、"meta"、"ctrl"。
+ /// 空字符串表示默认:各平台都是 alt(Mac 上是 ⌥)
+ @$pb.TagNumber(33)
+ $core.String get quickPasteIndexModifier => $_getSZ(32);
+ @$pb.TagNumber(33)
+ set quickPasteIndexModifier($core.String value) => $_setString(32, value);
+ @$pb.TagNumber(33)
+ $core.bool hasQuickPasteIndexModifier() => $_has(32);
+ @$pb.TagNumber(33)
+ void clearQuickPasteIndexModifier() => $_clearField(33);
}
class OfficialUsage extends $pb.GeneratedMessage {
diff --git a/ui/lib/gen/pasteferry/v1/daemon.pbjson.dart b/ui/lib/gen/pasteferry/v1/daemon.pbjson.dart
index cc1751e..26be5b1 100644
--- a/ui/lib/gen/pasteferry/v1/daemon.pbjson.dart
+++ b/ui/lib/gen/pasteferry/v1/daemon.pbjson.dart
@@ -1316,6 +1316,13 @@ const Config$json = {
'10': 'everyoneUntilUnix'
},
{'1': 'display_name', '3': 32, '4': 1, '5': 9, '10': 'displayName'},
+ {
+ '1': 'quick_paste_index_modifier',
+ '3': 33,
+ '4': 1,
+ '5': 9,
+ '10': 'quickPasteIndexModifier'
+ },
],
};
@@ -1345,7 +1352,9 @@ final $typed_data.Uint8List configDescriptor = $convert.base64Decode(
'FsdGltZVN5bmNEaXNhYmxlZBIhCgxzeW5jX2JhY2tsb2cYHCABKAhSC3N5bmNCYWNrbG9nEi4K'
'E3N5bmNfZGlzYWJsZWRfcGVlcnMYHSADKAlSEXN5bmNEaXNhYmxlZFBlZXJzEiEKDHJlY2Vpdm'
'VfZnJvbRgeIAEoCVILcmVjZWl2ZUZyb20SLgoTZXZlcnlvbmVfdW50aWxfdW5peBgfIAEoA1IR'
- 'ZXZlcnlvbmVVbnRpbFVuaXgSIQoMZGlzcGxheV9uYW1lGCAgASgJUgtkaXNwbGF5TmFtZQ==');
+ 'ZXZlcnlvbmVVbnRpbFVuaXgSIQoMZGlzcGxheV9uYW1lGCAgASgJUgtkaXNwbGF5TmFtZRI7Ch'
+ 'pxdWlja19wYXN0ZV9pbmRleF9tb2RpZmllchghIAEoCVIXcXVpY2tQYXN0ZUluZGV4TW9kaWZp'
+ 'ZXI=');
@$core.Deprecated('Use officialUsageDescriptor instead')
const OfficialUsage$json = {
diff --git a/ui/lib/hotkey.dart b/ui/lib/hotkey.dart
index 9d7aa6c..782c527 100644
--- a/ui/lib/hotkey.dart
+++ b/ui/lib/hotkey.dart
@@ -147,3 +147,16 @@ class Hotkey {
@override
String toString() => canonical;
}
+
+/// 快捷窗口里按住它再按 1–9 粘贴对应那一条的修饰键(Config.quick_paste_index_modifier)。
+/// 默认 alt:Mac 上是 ⌥。Windows、Linux 上不能选 meta:Win 键加数字是系统切换任务栏程序用的。
+abstract final class IndexModifier {
+ static List<String> get choices => Platform.isMacOS ? const ['alt', 'meta', 'ctrl'] : const ['alt', 'ctrl'];
+
+ static String of(String setting) => choices.contains(setting) ? setting : 'alt';
+
+ /// 写在序号前面:⌥1、Alt+1
+ static String label(String modifier) => Platform.isMacOS
+ ? const {'alt': '⌥', 'meta': '⌘', 'ctrl': '⌃'}[modifier]!
+ : const {'alt': 'Alt+', 'ctrl': 'Ctrl+'}[modifier]!;
+}
diff --git a/ui/lib/l10n/app_en.arb b/ui/lib/l10n/app_en.arb
index 67f0bdb..f8b0512 100644
--- a/ui/lib/l10n/app_en.arb
+++ b/ui/lib/l10n/app_en.arb
@@ -336,6 +336,8 @@
"quickPasteAfterPick": "After you pick an item",
"quickPastePasteIt": "Paste it",
"quickPasteCopyIt": "Just copy it",
+ "quickPasteIndexKey": "Pick one of the first 9",
+ "quickPasteIndexKeyDesc": "In the quick paste window, hold this key and press 1–9",
"quickPasteAccessibility": "Accessibility",
"quickPasteAccessibilityDesc": "Needed to paste for you. Without it, items are copied and you press ⌘V.",
"quickPasteAllowed": "Allowed",
diff --git a/ui/lib/l10n/app_ja.arb b/ui/lib/l10n/app_ja.arb
index 9d0d208..4cbb882 100644
--- a/ui/lib/l10n/app_ja.arb
+++ b/ui/lib/l10n/app_ja.arb
@@ -115,6 +115,8 @@
"quickPasteAfterPick": "選んだ後",
"quickPastePasteIt": "ペーストする",
"quickPasteCopyIt": "コピーのみ",
+ "quickPasteIndexKey": "最初の 9 件を選ぶ",
+ "quickPasteIndexKeyDesc": "クイックペーストウィンドウでこのキーを押しながら 1〜9 を押します",
"quickPasteAccessibility": "アクセシビリティ",
"quickPasteAccessibilityDesc": "ペーストするのに必要です。許可しない場合はコピーだけされ、⌘V で貼り付けます。",
"quickPasteAllowed": "許可済み",
diff --git a/ui/lib/l10n/app_localizations.dart b/ui/lib/l10n/app_localizations.dart
index c9e224a..17bdc67 100644
--- a/ui/lib/l10n/app_localizations.dart
+++ b/ui/lib/l10n/app_localizations.dart
@@ -800,6 +800,18 @@ abstract class AppLocalizations {
/// **'Just copy it'**
String get quickPasteCopyIt;
+ /// No description provided for @quickPasteIndexKey.
+ ///
+ /// In en, this message translates to:
+ /// **'Pick one of the first 9'**
+ String get quickPasteIndexKey;
+
+ /// No description provided for @quickPasteIndexKeyDesc.
+ ///
+ /// In en, this message translates to:
+ /// **'In the quick paste window, hold this key and press 1–9'**
+ String get quickPasteIndexKeyDesc;
+
/// No description provided for @quickPasteAccessibility.
///
/// In en, this message translates to:
diff --git a/ui/lib/l10n/app_localizations_en.dart b/ui/lib/l10n/app_localizations_en.dart
index 79cd1d6..e4a054a 100644
--- a/ui/lib/l10n/app_localizations_en.dart
+++ b/ui/lib/l10n/app_localizations_en.dart
@@ -508,6 +508,13 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get quickPasteCopyIt => 'Just copy it';
+ @override
+ String get quickPasteIndexKey => 'Pick one of the first 9';
+
+ @override
+ String get quickPasteIndexKeyDesc =>
+ 'In the quick paste window, hold this key and press 1–9';
+
@override
String get quickPasteAccessibility => 'Accessibility';
diff --git a/ui/lib/l10n/app_localizations_ja.dart b/ui/lib/l10n/app_localizations_ja.dart
index f753b19..74e69d2 100644
--- a/ui/lib/l10n/app_localizations_ja.dart
+++ b/ui/lib/l10n/app_localizations_ja.dart
@@ -415,6 +415,12 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get quickPasteCopyIt => 'コピーのみ';
+ @override
+ String get quickPasteIndexKey => '最初の 9 件を選ぶ';
+
+ @override
+ String get quickPasteIndexKeyDesc => 'クイックペーストウィンドウでこのキーを押しながら 1〜9 を押します';
+
@override
String get quickPasteAccessibility => 'アクセシビリティ';
diff --git a/ui/lib/l10n/app_localizations_zh.dart b/ui/lib/l10n/app_localizations_zh.dart
index bece878..cb0e24a 100644
--- a/ui/lib/l10n/app_localizations_zh.dart
+++ b/ui/lib/l10n/app_localizations_zh.dart
@@ -413,6 +413,12 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get quickPasteCopyIt => '只放进剪贴板';
+ @override
+ String get quickPasteIndexKey => '粘贴前 9 条';
+
+ @override
+ String get quickPasteIndexKeyDesc => '在快捷窗口里按住它再按 1–9';
+
@override
String get quickPasteAccessibility => '辅助功能权限';
@@ -2543,6 +2549,12 @@ class AppLocalizationsZhHantHk extends AppLocalizationsZh {
@override
String get quickPasteCopyIt => '只放入剪貼簿';
+ @override
+ String get quickPasteIndexKey => '貼上前 9 項';
+
+ @override
+ String get quickPasteIndexKeyDesc => '在快速貼上視窗裏按住它再按 1–9';
+
@override
String get quickPasteAccessibility => '輔助使用權限';
@@ -4673,6 +4685,12 @@ class AppLocalizationsZhHantTw extends AppLocalizationsZh {
@override
String get quickPasteCopyIt => '只放進剪貼簿';
+ @override
+ String get quickPasteIndexKey => '貼上前 9 筆';
+
+ @override
+ String get quickPasteIndexKeyDesc => '在快速貼上視窗裡按住它再按 1–9';
+
@override
String get quickPasteAccessibility => '輔助使用權限';
diff --git a/ui/lib/l10n/app_zh.arb b/ui/lib/l10n/app_zh.arb
index 9088c04..65a54e2 100644
--- a/ui/lib/l10n/app_zh.arb
+++ b/ui/lib/l10n/app_zh.arb
@@ -115,6 +115,8 @@
"quickPasteAfterPick": "选中后",
"quickPastePasteIt": "直接粘贴",
"quickPasteCopyIt": "只放进剪贴板",
+ "quickPasteIndexKey": "粘贴前 9 条",
+ "quickPasteIndexKeyDesc": "在快捷窗口里按住它再按 1–9",
"quickPasteAccessibility": "辅助功能权限",
"quickPasteAccessibilityDesc": "直接粘贴需要它;没有授权时只放进剪贴板,再由你按 ⌘V",
"quickPasteAllowed": "已授权",
diff --git a/ui/lib/l10n/app_zh_Hant_HK.arb b/ui/lib/l10n/app_zh_Hant_HK.arb
index 70645b5..4e2cf9c 100644
--- a/ui/lib/l10n/app_zh_Hant_HK.arb
+++ b/ui/lib/l10n/app_zh_Hant_HK.arb
@@ -115,6 +115,8 @@
"quickPasteAfterPick": "選取後",
"quickPastePasteIt": "直接貼上",
"quickPasteCopyIt": "只放入剪貼簿",
+ "quickPasteIndexKey": "貼上前 9 項",
+ "quickPasteIndexKeyDesc": "在快速貼上視窗裏按住它再按 1–9",
"quickPasteAccessibility": "輔助使用權限",
"quickPasteAccessibilityDesc": "直接貼上需要它;沒有授權時只放入剪貼簿,再由你按 ⌘V",
"quickPasteAllowed": "已授權",
diff --git a/ui/lib/l10n/app_zh_Hant_TW.arb b/ui/lib/l10n/app_zh_Hant_TW.arb
index bced5f4..d1ae557 100644
--- a/ui/lib/l10n/app_zh_Hant_TW.arb
+++ b/ui/lib/l10n/app_zh_Hant_TW.arb
@@ -115,6 +115,8 @@
"quickPasteAfterPick": "選取後",
"quickPastePasteIt": "直接貼上",
"quickPasteCopyIt": "只放進剪貼簿",
+ "quickPasteIndexKey": "貼上前 9 筆",
+ "quickPasteIndexKeyDesc": "在快速貼上視窗裡按住它再按 1–9",
"quickPasteAccessibility": "輔助使用權限",
"quickPasteAccessibilityDesc": "直接貼上需要它;沒有授權時只放進剪貼簿,再由你按 ⌘V",
"quickPasteAllowed": "已授權",
diff --git a/ui/lib/pages/quick_paste_settings.dart b/ui/lib/pages/quick_paste_settings.dart
index 8ce7fe0..f295092 100644
--- a/ui/lib/pages/quick_paste_settings.dart
+++ b/ui/lib/pages/quick_paste_settings.dart
@@ -71,6 +71,16 @@ class QuickPasteSection extends StatelessWidget {
onChanged: (paste) => onUpdate(config.deepCopy()..quickPasteCopyOnly = !paste),
),
),
+ if (enabled)
+ SettingRow(
+ title: l.quickPasteIndexKey,
+ description: l.quickPasteIndexKeyDesc,
+ child: Segmented<String>(
+ value: IndexModifier.of(config.quickPasteIndexModifier),
+ segments: [for (final m in IndexModifier.choices) (m, '${IndexModifier.label(m)}1–9')],
+ onChanged: (m) => onUpdate(config.deepCopy()..quickPasteIndexModifier = m),
+ ),
+ ),
if (enabled && Platform.isMacOS && qp != null && qp.running && !config.quickPasteCopyOnly)
SettingRow(
title: l.quickPasteAccessibility,
diff --git a/ui/lib/picker/picker_state.dart b/ui/lib/picker/picker_state.dart
index 08ca2bd..842735f 100644
--- a/ui/lib/picker/picker_state.dart
+++ b/ui/lib/picker/picker_state.dart
@@ -94,6 +94,9 @@ class PickerState extends ChangeNotifier implements RecordDetails {
bool get copyOnly => _config?.quickPasteCopyOnly ?? false;
+ /// 按住它再按 1–9 选行:"alt"、"meta"、"ctrl",见 [IndexModifier]
+ String get indexModifier => IndexModifier.of(_config?.quickPasteIndexModifier ?? '');
+
/// 选中后能不能自动粘贴;不能的原因见 [pasteBlockedReason]
bool get canPaste => !copyOnly && _paste.available;
diff --git a/ui/lib/picker/picker_view.dart b/ui/lib/picker/picker_view.dart
index b212d85..2a3f063 100644
--- a/ui/lib/picker/picker_view.dart
+++ b/ui/lib/picker/picker_view.dart
@@ -5,6 +5,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import '../gen/pasteferry/v1/daemon.pb.dart';
+import '../hotkey.dart';
import '../i18n.dart';
import '../icons.dart';
import '../records.dart';
@@ -135,6 +136,12 @@ class _PickerViewState extends State<PickerView> {
bool get _shift => HardwareKeyboard.instance.isShiftPressed || _WindowsKeys.pressed(_WindowsKeys.shift);
bool get _alt => HardwareKeyboard.instance.isAltPressed || _WindowsKeys.pressed(_WindowsKeys.menu);
+ bool get _indexModifierPressed => switch (s.indexModifier) {
+ 'meta' => HardwareKeyboard.instance.isMetaPressed,
+ 'ctrl' => _ctrl,
+ _ => _alt,
+ };
+
KeyEventResult _onKey(FocusNode _, KeyEvent e) {
if (e is! KeyDownEvent && e is! KeyRepeatEvent) return KeyEventResult.ignored;
// 正在用输入法打字:数字选候选、回车上屏,都交给输入法
@@ -179,9 +186,9 @@ class _PickerViewState extends State<PickerView> {
s.delete(current);
return KeyEventResult.handled;
}
- // 序号:按住 ⌘(Mac)或 Alt(Windows、Linux)再按数字。直接按数字是在搜索框里打字,好搜数字
+ // 序号:按住设置里选的修饰键(默认 ⌥ / Alt)再按数字。直接按数字是在搜索框里打字,好搜数字
final digit = _digit(e);
- if (digit != null && e is KeyDownEvent && (_mac ? kb.isMetaPressed : _alt)) {
+ if (digit != null && e is KeyDownEvent && _indexModifierPressed) {
s.chooseIndex(digit - 1);
return KeyEventResult.handled;
}
@@ -340,7 +347,7 @@ class _PickerViewState extends State<PickerView> {
record: list[i],
index: i,
selected: i == s.selected,
- number: i < 9 ? (_mac ? '⌘${i + 1}' : 'Alt+${i + 1}') : null,
+ number: i < 9 ? '${IndexModifier.label(s.indexModifier)}${i + 1}' : null,
favoritesTab: s.tab == PickerTab.favorites,
dim: p.textFaint,
),
diff --git a/ui/test/picker_test.dart b/ui/test/picker_test.dart
index 3424f2d..36e6f61 100644
--- a/ui/test/picker_test.dart
+++ b/ui/test/picker_test.dart
@@ -13,17 +13,18 @@ import 'package:pasteferry_ui/picker/picker_view.dart';
const _channel = MethodChannel('pasteferry/picker');
-// 快捷窗口的按键跟着平台走:Mac 上是 ⌘,Windows 与 Linux 上是 Ctrl(序号是 Alt+数字)
+// 快捷窗口的按键跟着平台走:Mac 上是 ⌘,Windows 与 Linux 上是 Ctrl(序号默认是 ⌥ / Alt 加数字)
final _mac = Platform.isMacOS;
final _cmdKey = _mac ? LogicalKeyboardKey.metaLeft : LogicalKeyboardKey.controlLeft;
-final _indexKey = _mac ? LogicalKeyboardKey.metaLeft : LogicalKeyboardKey.altLeft;
+final _n1 = _mac ? '⌥1' : 'Alt+1';
-/// 按住 ⌘(Mac)或 Alt 再按数字:选那一行
-Future<void> _pressIndex(WidgetTester tester, LogicalKeyboardKey digit, {PhysicalKeyboardKey? physicalKey}) async {
- await tester.sendKeyDownEvent(_indexKey);
+/// 按住 [modifier](默认 ⌥ / Alt)再按数字:选那一行
+Future<void> _pressIndex(WidgetTester tester, LogicalKeyboardKey digit,
+ {PhysicalKeyboardKey? physicalKey, LogicalKeyboardKey modifier = LogicalKeyboardKey.altLeft}) async {
+ await tester.sendKeyDownEvent(modifier);
await tester.sendKeyDownEvent(digit, physicalKey: physicalKey);
await tester.sendKeyUpEvent(digit, physicalKey: physicalKey);
- await tester.sendKeyUpEvent(_indexKey);
+ await tester.sendKeyUpEvent(modifier);
}
/// 不连后台服务:放进剪贴板、下载、收藏都记下来。
@@ -126,10 +127,10 @@ void main() {
List<MethodCall> commits() => calls.where((c) => c.method == 'commit').toList();
- testWidgets('前 9 条标序号,按 ⌘ 或 Alt 加数字粘贴那一条', (tester) async {
+ testWidgets('前 9 条标序号,按 ⌥ 或 Alt 加数字粘贴那一条', (tester) async {
final s = await open(tester);
- expect(find.text(_mac ? '⌘1' : 'Alt+1'), findsOneWidget);
- expect(find.text(_mac ? '⌘4' : 'Alt+4'), findsOneWidget);
+ expect(find.text(_n1), findsOneWidget);
+ expect(find.text(_mac ? '⌥4' : 'Alt+4'), findsOneWidget);
// 「收藏」既是页签,也是底栏 ⌘D 的说明
for (final t in ['全部', '文本', '链接', '图片', '文件', '收藏']) {
expect(find.text(t), findsWidgets, reason: t);
@@ -141,6 +142,19 @@ void main() {
expect(commits().single.arguments, {'paste': true});
});
+ testWidgets('设置里换成别的修饰键:序号跟着变,原来的 ⌥ / Alt 不再选行', (tester) async {
+ final m = _mac ? 'meta' : 'ctrl';
+ final key = _mac ? LogicalKeyboardKey.metaLeft : LogicalKeyboardKey.controlLeft;
+ final s = await open(tester, config: Config(language: 'zh-Hans', quickPasteIndexModifier: m));
+ expect(find.text(_mac ? '⌘1' : 'Ctrl+1'), findsOneWidget);
+ await _pressIndex(tester, LogicalKeyboardKey.digit2);
+ await tester.pump();
+ expect(s.applied, isEmpty);
+ await _pressIndex(tester, LogicalKeyboardKey.digit2, modifier: key);
+ await tester.pump();
+ expect(s.applied, [('b', false)]);
+ });
+
testWidgets('模拟输入没有扫描码、认不出物理按键时,按逻辑按键认数字', (tester) async {
final s = await open(tester);
await _pressIndex(tester, LogicalKeyboardKey.digit3, physicalKey: PhysicalKeyboardKey.keyQ);
@@ -163,14 +177,14 @@ void main() {
await tester.pump(const Duration(milliseconds: 200)); // 等搜索的计时器走完
});
- testWidgets('搜索时数字是打字,序号照样是 ⌘1……', (tester) async {
+ testWidgets('搜索时数字是打字,序号照样是 ⌥1……', (tester) async {
final s = await open(tester);
await tester.enterText(find.byType(TextField), 'docker 2');
await tester.pump();
expect(s.applied, isEmpty);
await tester.enterText(find.byType(TextField), 'docker');
await tester.pump();
- expect(find.text(_mac ? '⌘1' : 'Alt+1'), findsOneWidget);
+ expect(find.text(_n1), findsOneWidget);
expect(find.textContaining('docker compose'), findsOneWidget);
expect(find.textContaining('会议'), findsNothing);
// 停顿后在当前页签里搜全部历史