Allow to hide more buttons with the settings (#30565)
* project search button in the status bar ```jsonc "search": { "button": false }, ``` * project diagnostics button in the status bar ```jsonc "diagnostics": { "button": false } ``` * project name and host buttons in the title bar ```jsonc "title_bar": { "show_project_items": false } ``` * git branch button in the title bar ```jsonc "title_bar": { "show_branch_name": false } ``` Before: <img width="1728" alt="before" src="https://github.com/user-attachments/assets/4b13b431-3ac1-43b3-8ac7-469e5a9ccf7e" /> After: <img width="1728" alt="after" src="https://github.com/user-attachments/assets/baf2765a-e27b-47a3-8897-89152b7a7c95" /> Release Notes: - Added more settings to hide buttons from Zed UI
This commit is contained in:
parent
a6c3d49bb9
commit
a3105c92a4
8 changed files with 76 additions and 20 deletions
|
@ -4,6 +4,7 @@ use project::project_settings::DiagnosticSeverity;
|
|||
use schemars::JsonSchema;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use settings::{Settings, SettingsSources, VsCodeSettings};
|
||||
use util::serde::default_true;
|
||||
|
||||
#[derive(Deserialize, Clone)]
|
||||
pub struct EditorSettings {
|
||||
|
@ -276,6 +277,9 @@ pub enum ScrollBeyondLastLine {
|
|||
/// Default options for buffer and project search items.
|
||||
#[derive(Copy, Clone, Default, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq)]
|
||||
pub struct SearchSettings {
|
||||
/// Whether to show the project search button in the status bar.
|
||||
#[serde(default = "default_true")]
|
||||
pub button: bool,
|
||||
#[serde(default)]
|
||||
pub whole_word: bool,
|
||||
#[serde(default)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue