From 25993bb37917c068d22e8af00ccc9e997ab7de27 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 19 Mar 2024 09:16:59 +0100 Subject: [PATCH] Ignore more version control systems Ignore `.pijul` and `.jj` as well as `.git`. This makes hx so much more usable with VCSes other than git! --- helix-term/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helix-term/src/lib.rs b/helix-term/src/lib.rs index cdde86ec5903c..21cf1b03b97ee 100644 --- a/helix-term/src/lib.rs +++ b/helix-term/src/lib.rs @@ -48,10 +48,11 @@ fn true_color() -> bool { /// Function used for filtering dir entries in the various file pickers. fn filter_picker_entry(entry: &DirEntry, root: &Path, dedup_symlinks: bool) -> bool { - // We always want to ignore the .git directory, otherwise if + // We always want to ignore popular VCS directories, otherwise if // `ignore` is turned off, we end up with a lot of noise // in our picker. - if entry.file_name() == ".git" { + let f_n = entry.file_name(); + if f_n == ".git" || f_n == ".hg" || f_n == ".pijul" || f_n == ".jj" { return false; }