Skip to content

Commit

Permalink
Ignore more version control systems
Browse files Browse the repository at this point in the history
Ignore `.pijul` and `.jj` as well as `.git`. This makes hx so much more
usable with VCSes other than git!
  • Loading branch information
hunger committed Mar 19, 2024
1 parent 3d4889c commit 25993bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helix-term/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 25993bb

Please sign in to comment.