Skip to content

[FEATURE REQUEST] 支持切换全屏快捷键(Windows/Linux 为 F11,macOS 为 Ctrl+Cmd+F) #94

Closed

Description

@WhiteGiverMa

What it is for

在日常运行 OpenCode、Claude Code、Codex 等全屏 TUI 工具进行 vibe coding 时,希望能像 Windows Terminal 和 Ghostty 一样,通过快捷键一键切换终端窗口全屏,隐藏任务栏与桌面干扰,获得更沉浸的 TUI 工作区体验。

目前 ELYTerminal 已经对全屏状态做了窗口尺寸保存与桌宠位置适配,macOS 也可以通过窗口左上角原生绿灯按钮进入全屏,但 Windows 下标题栏仅提供最小化、最大化与关闭按钮,且应用内尚未绑定全屏切换快捷键(按 F11 目前会作为 \x1b[23~ 直接发送给终端内程序)。

How it should work

  • 在 src/menus.rs 中新增窗口级全屏切换动作(如 ToggleFullScreen),并在 window_actions 中调用 GPUI 的 window.toggle_fullscreen()。
  • 快捷键对齐 Ghostty 与 Windows Terminal 的默认约定(同时保留 Alt+Enter 发送给终端内程序用于多行换行):
    • Windows / Linux:f11
    • macOS:ctrl-cmd-f(并放入菜单栏)
  • 在 src/settings/window/terminal.rs 的快捷键列表以及中英文 keys.md 文档中同步列出该快捷键。
  • 现有的窗口尺寸持久化(src/app.rs 已跳过 window.is_fullscreen())与桌宠位置计算(顶部空间不足或全屏时移至底边)可直接复用。

References

  • src/menus.rs 中的 Minimize / Zoom 窗口动作绑定:src/menus.rs#L103-L112
  • src/app.rs 中 keep_bounds 对 window.is_fullscreen() 的既有判断:src/app.rs#L286
  • Windows Terminal 与 Ghostty 的全屏切换快捷键约定

Checked

  • I searched the open issues for the same request.

Activity

  1. Raiden-MeixElysia commented on Nov 14, 2026

    @Raiden-MeixElysia
    Contributor

    主分支已加上,下一版发布:全屏切换,macOS 上是 Ctrl-Cmd-F,Windows 和 Linux 上是 F11,macOS 上也在“显示”菜单里,名为“切换全屏”。Windows 和 Linux 上 F11 不再传给程序;需要的话可以在 设置 › 终端 › 快捷键 里去掉。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions