Skip to content

feat: support .hidden file for dotfiles exclusion#1351

Open
NecRaul wants to merge 5 commits into9001:hovudstraumfrom
NecRaul:feat/dothidden
Open

feat: support .hidden file for dotfiles exclusion#1351
NecRaul wants to merge 5 commits into9001:hovudstraumfrom
NecRaul:feat/dothidden

Conversation

@NecRaul
Copy link
Contributor

@NecRaul NecRaul commented Mar 8, 2026

Add support for a per-directory .hidden file to exclude additional files/directories from listings.

  • looks for a .hidden file in each directory being listed
  • reads filenames from .hidden if it exists
  • excludes any files or folders listed in .hidden from listings
  • still hides normal dotfiles as before
  • if no .hidden file exists, behavior is unchanged

Example directory:

/dir
├─ subdir/
│  ├─ lost+found/
│  └─ file2.txt
├─ lost+found/
├─ .secret
├─ .hidden  (contains "hidden.txt" and "lost+found")
├─ file1.txt
├─ hidden.txt
└─ lost+found.txt

Resulting listing:

/dir
├─ subdir/
│  ├─ lost+found/  (not hidden)
│  └─ file2.txt
├─ file1.txt
└─ lost+found.txt

This PR complies with the DCO; https://developercertificate.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant