Skip to content

feat(shortcuts): 添加终端字号快捷键#297

Open
lizhian wants to merge 1 commit into
hanshuaikang:mainfrom
lizhian:own/quickly-adjust-terminal-font-size
Open

feat(shortcuts): 添加终端字号快捷键#297
lizhian wants to merge 1 commit into
hanshuaikang:mainfrom
lizhian:own/quickly-adjust-terminal-font-size

Conversation

@lizhian

@lizhian lizhian commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

变更内容

  • 新增终端字号快捷键,支持使用平台修饰键配合 + / - 快速调整终端字体大小。
  • 在应用设置的快捷键面板中加入终端字号快捷键开关,并持久化到应用设置。
  • 前端监听应用设置变更后动态启用或停用字号快捷键。
  • 为快捷键识别、默认值归一化和平台展示文案补充单元测试。

影响

默认启用终端字号快捷键;用户可以在快捷键设置中关闭。该改动只影响终端字体大小调整和对应应用设置,不改变任务执行或终端输入输出逻辑。

验证

  • pnpm lint
  • pnpm test
  • pnpm build
  • cargo check

构建通过,Vite 仍输出现有的 chunk size warning。

@lizhian
lizhian marked this pull request as ready for review June 15, 2026 08:38
@lizhian
lizhian force-pushed the own/quickly-adjust-terminal-font-size branch 2 times, most recently from 6844c0c to 6b0f26f Compare July 1, 2026 13:53
Add configurable shortcuts for increasing, decreasing, and resetting terminal font size while a terminal is active.

Implementation:
- Persist terminal zoom shortcuts in app settings and expose them in the shortcuts panel.
- Add shortcut matching utilities and tests for zoom behavior.
- Scope handling to terminal focus so application inputs do not resize terminal text.
@lizhian
lizhian force-pushed the own/quickly-adjust-terminal-font-size branch from 6b0f26f to 420961a Compare July 10, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant