Skip to content

[Feature]: Add a keybinding for maximizing the right panel #5088

Description

@husseinraoouf

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I am describing a concrete problem or use case, not just a vague idea.

Area

apps/web

Problem or use case

The right panel has a Maximize panel / Restore panel size control, but that action is not exposed in the keyboard binding configuration. Users must reach for the pointer whenever they want to temporarily give Files, Diff, Terminal, Browser, or Plan the full workspace width.

Proposed solution

Add a bindable command for toggling the right panel between maximized and restored states, for example rightPanel.toggleMaximized, and expose it in the keyboard binding configuration.

A suggested macOS default is Command+Shift+M, but the exact default is not a requirement. The suggestion follows an existing convention in other agent-oriented and coding tools: Kangentic uses Command+Shift+M to maximize or restore its open task/terminal panel, and the Max Editor VS Code extension uses the same shortcut to toggle its maximized editor layout. Reusing that chord could therefore feel familiar to users coming from similar tools.

Command+Shift+M is currently the default for modelPicker.toggle in T3 Code, so maintainers may prefer another default rather than reassigning the existing command.

Why this matters

Maximizing and restoring the right panel is a frequent layout action when reviewing a diff, reading a file, or working in an embedded terminal. A configurable shortcut keeps that workflow keyboard-driven and makes the existing UI action discoverable alongside other panel commands.

Smallest useful scope

Expose the existing maximize/restore toggle as one keybinding command. Reuse the current toggleRightPanelMaximized behavior; no new panel state or layout behavior is needed. The command would still be useful even if it ships without a default binding.

Alternatives considered

The existing maximize button works, but it requires pointer input and cannot be customized through the keyboard binding settings.

Risks or tradeoffs

  • The suggested macOS shortcut conflicts with the current model-picker shortcut, so the final default needs to avoid ambiguity.
  • The command should no-op when the right panel is closed or when the current layout cannot maximize it, matching the existing control's availability.

Examples or references

Related but not a duplicate: #4641 requests several other actions be exposed as bindable keybinding commands.

Contribution

  • I would be open to helping implement this.

Activity

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