Add setting for hiding the status_bar.cursor_position_button (#36288)

Release Notes:

- Added an option for the status_bar.cursor_position_button. Setting to
`false` will hide the button. It defaults to `true`.

This builds off the recent work to hide the language selection button
(https://github.com/zed-industries/zed/pull/33977). I tried to follow
that pattern, and to pick a clear name for the option, but any
feedback/change is welcome.

---------

Co-authored-by: zumbalogy <3770982+zumbalogy@users.noreply.github.com>
This commit is contained in:
zumbalogy
2025-08-16 09:19:38 +03:00
committed by GitHub
co-authored by zumbalogy
parent e664a9bc48
commit f5f14111ef
5 changed files with 24 additions and 2 deletions
+8
View File
@@ -132,6 +132,10 @@ pub struct StatusBar {
///
/// Default: true
pub active_language_button: bool,
/// Whether to show the cursor position button in the status bar.
///
/// Default: true
pub cursor_position_button: bool,
}
#[derive(Copy, Clone, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq)]
@@ -585,6 +589,10 @@ pub struct StatusBarContent {
///
/// Default: true
pub active_language_button: Option<bool>,
/// Whether to show the cursor position button in the status bar.
///
/// Default: true
pub cursor_position_button: Option<bool>,
}
// Toolbar related settings