Treat items starting with '_' the same as files starting with '.' and ignore them.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 510
- PR merge metrics
- No merged PRs in 30d
Description
A relatively uncommon but still popular method of marking files to be ignored is beginning them with '\_' instead of '.'.
VIM does this, with the \_viminfo file, less does this for the \_lesshist file, etc. It's pretty uncommon, but it's also really uncommon to begin files/directories with '\_' in the first place.
I'd like to see this prefix added alongside '.' and ignored like it is in exa. It's the only thing exa does differently that I really want in lsd.
Example:

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 existing handling for files and directories beginning with '.'. Extend that behavior to names beginning with '_' and verify that such entries are ignored while other underscore-prefixed names remain unaffected. The issue provides examples including _viminfo and _lesshist, but names no files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100