lsd-rs / lsd-rs/lsd

Treat items starting with '_' the same as files starting with '.' and ignore them.

Open
#751 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

need-more-info
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:
![image](https://user-images.githubusercontent.com/41020526/195320017-fcd3f18f-8d42-4d25-8679-3c4f9711f1d8.png)

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.