[Feature Suggestion] Respect .hidden file
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 510
- PR merge metrics
- No merged PRs in 30d
Description
Many file managers such as Dolphin, Thunar, Nautilus and others support hiding files and holders using a `.hidden` text file. It would be nice if LSD was able to also support this behaviour. So a user creates a .hidden file with the names of files or directories in it (one per line). When a user runs LSD in that directory it picks up the .hidden file and then doesn't display any files which match.
This behaviour can be easily over ridden with the -a option which will still show all files irrespective of whats in the .hidden file. I know lots of people are using this hide things like the snap directory on those Linux desktops which run them.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating LSD’s directory-listing logic and the handling of the -a option, then inspect how entries are selected for display. Implement support for reading .hidden names in the current directory and filtering matching files or directories unless -a is used; done means the requested behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100