Improve visibility and wording around close panel on toggle setting (#63548)

# Objective

- Improve documentation for `close_panel_on_toggle` setting. 

## Solution

- Previous docs were a bit ambiguous and since refactoring the setting
name is not possible at the time, I improved the documentation.

## 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 adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Release Notes:

- Added the`close_panel_on_toggle` setting to the settings UI and
improved its documentation.
This commit is contained in:
Matei Oprea authored and GitHub committed 2026-09-01 15:53:33 +00:00
1 parent ad0d789038
commit 04fc4edf86
4 files changed
+35 -7

No files matched your search

+4 -3
View File
@@ -192,9 +192,10 @@
"reveal_if_open": false,
// Whether to automatically close files that have been deleted on disk.
"close_on_file_delete": false,
// Whether toggling a panel (e.g. with its keyboard shortcut) also closes
// the panel when it is already focused, instead of just moving focus back
// to the editor.
// Whether invoking a panel's ToggleFocus action while the panel is already
// focused closes the panel, instead of just moving focus back to the
// editor. This only applies to a panel's focus-toggle action, not to its
// regular visibility-toggle action.
"close_panel_on_toggle": false,
// Relative size of the drop target in the editor that will open dropped file as a split pane (0-0.5)
// E.g. 0.25 == If you drop onto the top/bottom quarter of the pane a new vertical split will be used