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:
parent
77dadfedfe
commit
8061bacee3
2 changed files with 10 additions and 0 deletions
|
@ -1031,6 +1031,12 @@ impl ProjectSearchView {
|
|||
.update(cx, |editor, cx| editor.set_text(included_files, window, cx));
|
||||
search.filters_enabled = true;
|
||||
}
|
||||
if let Some(excluded_files) = action.excluded_files.as_deref() {
|
||||
search
|
||||
.excluded_files_editor
|
||||
.update(cx, |editor, cx| editor.set_text(excluded_files, window, cx));
|
||||
search.filters_enabled = true;
|
||||
}
|
||||
search.focus_query_editor(window, cx)
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue