Skip to content

Add Cmd+W keybinding for new chat session in session management#298807

Merged
benibenj merged 4 commits intomainfrom
copilot-worktree-2026-03-02T20-16-06
Mar 2, 2026
Merged

Add Cmd+W keybinding for new chat session in session management#298807
benibenj merged 4 commits intomainfrom
copilot-worktree-2026-03-02T20-16-06

Conversation

@benibenj
Copy link
Contributor

@benibenj benibenj commented Mar 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 2, 2026 21:00
@vs-code-engineering vs-code-engineering bot added this to the March 2026 milestone Mar 2, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Sessions-window keybinding intended to treat “closing” the current chat session similarly to closing an editor tab, by mapping Cmd/Ctrl+W (and Ctrl+F4 on Windows) to the “new chat” action when an existing session is active.

Changes:

  • Import IsNewChatSessionContext into the Sessions view pane.
  • Register a new keybinding rule for ACTION_ID_NEW_CHAT on Cmd/Ctrl+W (Windows: Ctrl+F4 primary) gated by IsNewChatSessionContext.negate().

@benibenj benibenj merged commit 0b8d74a into main Mar 2, 2026
20 checks passed
@benibenj benibenj deleted the copilot-worktree-2026-03-02T20-16-06 branch March 2, 2026 22:13
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.

3 participants