Files
zed/crates/tab_switcher
sebascadpi ef376006f3 tab_switcher: Add setting to disable file preview (#56235)
Closes [#45068](https://github.com/zed-industries/zed/issues/45068)

I added a setting that allows for files to not be displayed in the
editor while cycling through the tab switcher, it personally caused me
some confusion when I had to switch from one file to another and I was
shown other files' code I didn't care about, so I thought it would be
nice to have an option for only displaying the selected tab when you
release the ctrl key. See:


[zed-show_file_preview_false.webm](https://github.com/user-attachments/assets/3e49a253-2add-4e68-add6-08ecd1c81d01)

Self-Review Checklist

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Added `tab_switcher.show_file_preview` setting to control whether
files previews are shown while cycling through the tab switcher (the
default behavior is true)

---------

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
Co-authored-by: Amp <amp@ampcode.com>
2026-10-13 12:01:51 +00:00
..