|
|
|
@ -2184,7 +2184,10 @@ fn global_search(cx: &mut Context) {
|
|
|
|
|
let searcher = SearcherBuilder::new()
|
|
|
|
|
.binary_detection(BinaryDetection::quit(b'\x00'))
|
|
|
|
|
.build();
|
|
|
|
|
WalkBuilder::new(search_root)
|
|
|
|
|
|
|
|
|
|
let mut walk_builder = WalkBuilder::new(search_root);
|
|
|
|
|
|
|
|
|
|
walk_builder
|
|
|
|
|
.hidden(file_picker_config.hidden)
|
|
|
|
|
.parents(file_picker_config.parents)
|
|
|
|
|
.ignore(file_picker_config.ignore)
|
|
|
|
@ -2195,9 +2198,13 @@ fn global_search(cx: &mut Context) {
|
|
|
|
|
.max_depth(file_picker_config.max_depth)
|
|
|
|
|
.filter_entry(move |entry| {
|
|
|
|
|
filter_picker_entry(entry, &absolute_root, dedup_symlinks)
|
|
|
|
|
})
|
|
|
|
|
.build_parallel()
|
|
|
|
|
.run(|| {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
walk_builder
|
|
|
|
|
.add_custom_ignore_filename(helix_loader::config_dir().join("ignore"));
|
|
|
|
|
walk_builder.add_custom_ignore_filename(".helix/ignore");
|
|
|
|
|
|
|
|
|
|
walk_builder.build_parallel().run(|| {
|
|
|
|
|
let mut searcher = searcher.clone();
|
|
|
|
|
let matcher = matcher.clone();
|
|
|
|
|
let injector = injector_.clone();
|
|
|
|
|