Add ability to hide status bar (#39430)

This pull request adds the ability to configure the setting to hide or
show the status bar, as described in discussion:
https://github.com/zed-industries/zed/discussions/38591

The original [PR
#38974](https://github.com/zed-industries/zed/pull/38974#issuecomment-3362020879)
was merged but reverted due to hidden conflicts. As per @ConradIrwin 's
[request](https://github.com/zed-industries/zed/pull/38974#issuecomment-3362020879),
I am recreating the PR on top of updated main branch.

Release Notes:

- Added an experimental setting `"status_bar": { "experimental.show":
false}` to hide the status bars.

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Mansoor Ahmed
2025-10-03 20:11:21 -06:00
committed by GitHub
co-authored by Conrad Irwin
parent 55e68553a4
commit d9c7f44b0b
11 changed files with 114 additions and 52 deletions
+2 -4
View File
@@ -1418,7 +1418,7 @@ fn user_settings_data() -> Vec<SettingsPage> {
description: "Whether to show the active language button in the status bar",
field: Box::new(SettingField {
pick: |settings_content| {
if let Some(status_bar) = &settings_content.editor.status_bar {
if let Some(status_bar) = &settings_content.status_bar {
&status_bar.active_language_button
} else {
&None
@@ -1426,7 +1426,6 @@ fn user_settings_data() -> Vec<SettingsPage> {
},
pick_mut: |settings_content| {
&mut settings_content
.editor
.status_bar
.get_or_insert_default()
.active_language_button
@@ -1439,7 +1438,7 @@ fn user_settings_data() -> Vec<SettingsPage> {
description: "Whether to show the cursor position button in the status bar",
field: Box::new(SettingField {
pick: |settings_content| {
if let Some(status_bar) = &settings_content.editor.status_bar {
if let Some(status_bar) = &settings_content.status_bar {
&status_bar.cursor_position_button
} else {
&None
@@ -1447,7 +1446,6 @@ fn user_settings_data() -> Vec<SettingsPage> {
},
pick_mut: |settings_content| {
&mut settings_content
.editor
.status_bar
.get_or_insert_default()
.cursor_position_button