Skip to content

Commit

Permalink
feat!: remove special case for _ prefixed files in windows
Browse files Browse the repository at this point in the history
On windows files prefixed with a `_` were being ignored because some old
applications used those files as pseudo dotfiles.

This was controversial when the feature was added way back when:
ogham/exa#820 (review)

Fixes eza-community#1220
  • Loading branch information
jschpp committed Nov 14, 2024
1 parent 2945fd0 commit 44deba7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/fs/dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,6 @@ impl<'dir, 'ig> Files<'dir, 'ig> {
continue;
}

// Also hide _prefix files on Windows because it's used by old applications
// as an alternative to dot-prefix files.
#[cfg(windows)]
if !self.dotfiles && filename.starts_with('_') {
continue;
}

if self.git_ignoring {
let git_status = self.git.map(|g| g.get(&path, false)).unwrap_or_default();
if git_status.unstaged == GitStatus::Ignored {
Expand Down

0 comments on commit 44deba7

Please sign in to comment.