Skip to content

Make New File keybinding editable#12979

Open
SkyNotSilent wants to merge 1 commit into
warpdotdev:masterfrom
SkyNotSilent:codex/fix-12681-new-file-keybinding
Open

Make New File keybinding editable#12979
SkyNotSilent wants to merge 1 commit into
warpdotdev:masterfrom
SkyNotSilent:codex/fix-12681-new-file-keybinding

Conversation

@SkyNotSilent

@SkyNotSilent SkyNotSilent commented Jun 24, 2026

Copy link
Copy Markdown

Description

Closes #12681.

This moves the existing New File action from a fixed-only binding to an editable keybinding so it appears in Settings -> Keybindings and can be assigned by the user. The binding remains unassigned by default, and it keeps the existing CustomAction::NewFile trigger so the File menu item and custom shortcut dispatch stay aligned.

Implementation notes:

  • add a stable workspace:new_file binding name
  • register New File via EditableBinding instead of FixedBinding
  • keep the existing WorkspaceAction::NewCodeFile handler unchanged
  • add a regression test that verifies New File is editable, has no default shortcut, and is still backed by CustomAction::NewFile

Linked Issue

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Screenshots/video are included below because this is visible in Settings -> Keybindings.

Visual Evidence

Searching Settings -> Keyboard Shortcuts for New File now shows the entry, and selecting it opens the editable shortcut capture state.

New File keybinding editable

Testing

  • cargo fmt -p warp
  • cargo test -p warp util::bindings::tests --lib
  • git diff --check
  • Manually tested with ./script/run by opening Settings -> Keyboard Shortcuts, searching New File, and selecting the row to verify the editable shortcut capture state.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-IMPROVEMENT: New File can now be assigned a custom keyboard shortcut from Settings -> Keybindings.

@cla-bot cla-bot Bot added the cla-signed label Jun 24, 2026
@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label Jun 24, 2026
@SkyNotSilent

Copy link
Copy Markdown
Author

/oz-review

@oz-for-oss

oz-for-oss Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

@SkyNotSilent

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss

oz-for-oss Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

@SkyNotSilent

I'm re-reviewing this pull request in response to a review request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

oz-for-oss[bot]
oz-for-oss Bot previously requested changes Jun 24, 2026

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overview

This PR moves the New File action from a fixed custom-action binding to an editable keybinding with no default shortcut, and adds a regression test for the registration.

Concerns

  • This is a user-facing Settings -> Keybindings behavior change, but the PR does not include screenshots or a screen recording demonstrating that New File appears in Settings and can be assigned end to end. The repository review guidance requires visual evidence for user-visible changes, even when the implementation is mostly registration plumbing.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

oz-for-oss[bot]
oz-for-oss Bot previously requested changes Jun 24, 2026

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overview

This PR moves the New File action from a fixed custom action binding to an editable workspace:new_file binding with no default shortcut, while preserving the CustomAction::NewFile dispatch path and adding a regression test.

Concerns

  • This is a user-facing Settings → Keybindings change, but the PR does not include screenshots or a screen recording demonstrating New File appearing/editing in Settings end to end. Unit tests do not replace the required visual evidence for UI-impacting changes.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@SkyNotSilent

Copy link
Copy Markdown
Author

Visual evidence for the Settings -> Keyboard Shortcuts path: searching for New File now shows the row, and selecting it opens the editable shortcut capture state with Default, Cancel, and Save.

New File keybinding editable

@SkyNotSilent

Copy link
Copy Markdown
Author

/oz-review

@oz-for-oss

oz-for-oss Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

@SkyNotSilent

I'm re-reviewing this pull request in response to a review request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

oz-for-oss[bot]
oz-for-oss Bot previously requested changes Jun 24, 2026

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overview

This PR moves the existing New File action from a fixed custom action binding to an editable binding, adds a stable workspace:new_file binding name, and adds a regression test for the editable registration.

Concerns

  • The change is user-facing because it makes New File visible/editable in Settings -> Keybindings, but the PR does not include screenshots or a screen recording. The repo review guidance requires visual evidence for user-facing behavior, and unit tests/textual explanation do not replace it. Please attach screenshots or a short recording demonstrating the Settings -> Keybindings entry and assignment flow working end to end.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@SkyNotSilent

Copy link
Copy Markdown
Author

/oz-review

@oz-for-oss

oz-for-oss Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

@SkyNotSilent

I'm re-reviewing this pull request in response to a review request.

You can view the conversation on Warp.

I reviewed this pull request and requested human review from: @acarl005.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot dismissed stale reviews from themself June 24, 2026 03:43

Oz no longer requests changes for this pull request after the latest automated review.

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overview

This PR moves the existing New File action from a fixed custom action binding to an editable workspace:new_file binding with no default shortcut, while preserving the CustomAction::NewFile dispatch path and adding a regression test for the editable registration.

Concerns

  • No blocking correctness, security, or spec-alignment concerns found in the changed lines. No approved spec context was available for this PR.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot requested a review from acarl005 June 24, 2026 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New File action has no keyboard shortcut and isn't user-bindable

1 participant