lsd-rs / lsd-rs/lsd

[Feature Suggestion] Respect .hidden file

Open
#342 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.