Skip to content

project_panel: Fix preview tabs disabling focusing files after just one click in project panel#42836

Merged
smitbarmase merged 1 commit intozed-industries:mainfrom
Serophots:main
Nov 17, 2025
Merged

project_panel: Fix preview tabs disabling focusing files after just one click in project panel#42836
smitbarmase merged 1 commit intozed-industries:mainfrom
Serophots:main

Conversation

@Serophots
Copy link
Contributor

@Serophots Serophots commented Nov 16, 2025

Closes #41484

With preview tabs disabled, when you click once on a file in the project panel, rather than focusing on that file, zed will incorrectly focus on the text editor panel. This means if you click on a file to focus it, then follow up with a keybind like backspace to delete that file, it doesn't delete that file because the backspace goes through to the text editor instead.

Incorrect behaviour seen here:

Screen.Recording.2025-11-16.at.2.56.08.pm.mov

Release Notes:

  • Fixed improper UI focus behaviour in the project panel when preview tabs are disabled

@cla-bot
Copy link

cla-bot bot commented Nov 16, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @Serophots on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@Serophots
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 16, 2025
@cla-bot
Copy link

cla-bot bot commented Nov 16, 2025

The cla-bot has been summoned, and re-checked this pull request!

@maxdeviant maxdeviant changed the title project_panel: Fix preview tabs disabled focusing files after just one click in project panel project_panel: Fix preview tabs disabling focusing files after just one click in project panel Nov 16, 2025
@smitbarmase smitbarmase merged commit 175162a into zed-industries:main Nov 17, 2025
26 checks passed
@smitbarmase
Copy link
Member

Thank you!

11happy pushed a commit to 11happy/zed that referenced this pull request Dec 1, 2025
…ne click in project panel (zed-industries#42836)

Closes zed-industries#41484

With preview tabs disabled, when you click once on a file in the project
panel, rather than focusing on that file, zed will incorrectly focus on
the text editor panel. This means if you click on a file to focus it,
then follow up with a keybind like backspace to delete that file, it
doesn't delete that file because the backspace goes through to the text
editor instead.

Incorrect behaviour seen here:


https://github.com/user-attachments/assets/8c2dea90-bd90-4507-8ba6-344be348f151



Release Notes:

- Fixed improper UI focus behaviour in the project panel when preview
tabs are disabled
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.

Focus in non-preview mode

2 participants