From 8d44459c6ab1e1c7f26c8da4e6afafdb439c8450 Mon Sep 17 00:00:00 2001 From: Paul Olteanu Date: Sat, 21 Oct 2023 05:20:29 -0400 Subject: Add helix-specific ignore files (#8099) --- helix-term/src/ui/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'helix-term/src/ui/mod.rs') diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 12ac1783..660bbfea 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -177,6 +177,9 @@ pub fn file_picker(root: PathBuf, config: &helix_view::editor::Config) -> Picker .max_depth(config.file_picker.max_depth) .filter_entry(move |entry| filter_picker_entry(entry, &absolute_root, dedup_symlinks)); + walk_builder.add_custom_ignore_filename(helix_loader::config_dir().join("ignore")); + walk_builder.add_custom_ignore_filename(".helix/ignore"); + // We want to exclude files that the editor can't handle yet let mut type_builder = TypesBuilder::new(); type_builder -- cgit v1.2.3-70-g09d2