diff options
author | Paul Olteanu | 2023-10-21 09:20:29 +0000 |
---|---|---|
committer | GitHub | 2023-10-21 09:20:29 +0000 |
commit | 8d44459c6ab1e1c7f26c8da4e6afafdb439c8450 (patch) | |
tree | b45ce25506039389ecd2213db46c143af91ef5e8 /helix-term/src/ui | |
parent | 6d598d32398943718b4943a452ae6dd8490fa439 (diff) |
Add helix-specific ignore files (#8099)
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r-- | helix-term/src/ui/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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 |