feat(wayland): callout 补全 --toggle-qa / --cancel-dictation#433
Merged
Conversation
#420 评论里 aeoform 反馈 1.3.1-19 在 Wayland 下 callout 只展示 --toggle-dictation 一条,没有提及 QA 触发用 --toggle-qa、取消用 --cancel-dictation。 把单条命令展示改为三条命令并列,每条独立"复制"按钮 + 用途短标签 (开始/停止录音、打开/关闭 QA 面板、取消当前录音)。GNOME / KDE 步骤 改为"重复添加 1-3 组";Hyprland / sway 步骤给出三行示例 + 帮助区 启用 pre-line 渲染多行配置片段。 5 份 i18n 文件(zh-CN 源、en / zh-TW / ja / ko 同步翻译)同步新增三条 label key 并更新步骤文案。后端 CLI 三条命令早已实现(cli.rs:41-43), 本次只补前端提示。
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
背景
issue #420 评论里 @aeoform 反馈 1.3.1-19 在 Wayland 下唤醒 OK,但应用内 callout 只展示了
openless --toggle-dictation一条命令,没有提到 QA 触发用--toggle-qa、取消用--cancel-dictation,建议补上。后端 CLI 三条命令在 1.3.1-18 就已经实现(
cli.rs:41-43、lib.rs:805-846完整 dispatch),本次只是前端文案补全。改动
Settings.tsx的WaylandHotkeyCallout:单条命令展示 → 三条命令并列,每条独立"复制"按钮 + 右侧用途短标签commandToggleDictationLabel/commandToggleQaLabel/commandCancelDictationLabelwhiteSpace: pre-line渲染)零后端改动。
Test plan
npm run build(tsc + vite)通过is_wayland_cli_mode恒 false,本地无法直接渲染 callout关联
issue #420
PR Type
Bug fix, Enhancement
Description
Expand Wayland shortcut guidance
Show three CLI commands
Add per-command copy feedback
Update desktop setup instructions
Diagram Walkthrough
File Walkthrough
Settings.tsx
Show multiple Wayland commandsopenless-all/app/src/pages/Settings.tsx
zh-CN.ts
Refresh Wayland guidance in Chineseopenless-all/app/src/i18n/zh-CN.ts
en.ts
Update English Wayland instructionsopenless-all/app/src/i18n/en.ts
ja.ts
Update Japanese Wayland guidanceopenless-all/app/src/i18n/ja.ts
ko.ts
Update Korean Wayland guidanceopenless-all/app/src/i18n/ko.ts
zh-TW.ts
Refresh Traditional Chinese guidanceopenless-all/app/src/i18n/zh-TW.ts