Add excluded_files to pane::DeploySearch (#30699)
In accordance with #30327, I saw no reason for included files to get special treatment, and I actually get use out of prefilling excluded files because I like not to search symlinked files which, in my workflow, use a naming convention. This is simply implementing the same exact changes, but for excluded. It was tested with `"space /": ["pane::DeploySearch", { "excluded_files": "**/_*.tf" }]` and works just fine. Release Notes: - Added `excluded_files` to `pane::DeploySearch`.
This commit is contained in:
@@ -156,6 +156,8 @@ pub struct DeploySearch {
|
||||
pub replace_enabled: bool,
|
||||
#[serde(default)]
|
||||
pub included_files: Option<String>,
|
||||
#[serde(default)]
|
||||
pub excluded_files: Option<String>,
|
||||
}
|
||||
|
||||
impl_actions!(
|
||||
@@ -203,6 +205,7 @@ impl DeploySearch {
|
||||
Self {
|
||||
replace_enabled: false,
|
||||
included_files: None,
|
||||
excluded_files: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3114,6 +3117,7 @@ fn default_render_tab_bar_buttons(
|
||||
DeploySearch {
|
||||
replace_enabled: false,
|
||||
included_files: None,
|
||||
excluded_files: None,
|
||||
}
|
||||
.boxed_clone(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user