mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Ignore more version control systems (#9935)
Ignore `.pijul` and `.jj` as well as `.git`. This makes hx so much more usable with VCSes other than git!
This commit is contained in:
parent
4b4947639a
commit
1d1806c85a
@ -48,10 +48,13 @@ 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" {
|
||||
if matches!(
|
||||
entry.file_name().to_str(),
|
||||
Some(".git" | ".pijul" | ".jj" | ".hg")
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user