Skip to content

Conversation

@SO9010
Copy link
Contributor

@SO9010 SO9010 commented Oct 20, 2025

Closes #37726

Release Notes:

  • Fixed an issue where the buffer would not regain focus when clicked while a filename edit was in progress in the project panel.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 20, 2025
@maxdeviant maxdeviant changed the title project_panel: fix focus change to cancel action, and add refocus parameter to cancel_edit function project_panel: Fix focus change to cancel action, and add refocus parameter to cancel_edit function Oct 20, 2025
Copy link
Member

@smitbarmase smitbarmase left a comment

Choose a reason for hiding this comment

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

I think we should default to confirm as same as VSCode. This was recently changed in #39716.

@SO9010
Copy link
Contributor Author

SO9010 commented Oct 21, 2025

Got it sounds good!

@SO9010 SO9010 changed the title project_panel: Fix focus change to cancel action, and add refocus parameter to cancel_edit function project_panel: Add refocus parameter to cancel_edit function to stop refocus on focus change. Oct 21, 2025
@SO9010
Copy link
Contributor Author

SO9010 commented Oct 21, 2025

Alright that should have sorted that, I had a draft where it confirmed rather than cancelled. I didn't quite know what to call the pr so please feel free to change that!

@SO9010 SO9010 requested a review from smitbarmase October 21, 2025 16:25
Copy link
Member

@smitbarmase smitbarmase left a comment

Choose a reason for hiding this comment

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

Looks great! I removed the global focus out handling since the filename editor’s blur event already covers confirm behavior, making that redundant. Thanks for working on this.

@smitbarmase smitbarmase changed the title project_panel: Add refocus parameter to cancel_edit function to stop refocus on focus change. project_panel: Fix buffer focus when canceling filename edit Oct 22, 2025
@smitbarmase smitbarmase merged commit 77dbe08 into zed-industries:main Oct 22, 2025
33 of 39 checks passed
@SO9010
Copy link
Contributor Author

SO9010 commented Oct 22, 2025

Awesome thank you so much! I am very happy to start my contributions to zed!!

@SO9010 SO9010 deleted the Fix-37726 branch October 22, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking buffer does not focus it when renaming in Project Panel

3 participants