lsd-rs / lsd-rs/lsd

trucate user / group name before '\'

Open
#1,016 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
16.2k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

- os: windows 10
- `lsd --version`: v1.1.1
- `echo $TERM`: windows terminal - cmd.exe
- `echo $LS_COLORS`:

Can I truncate user / group name after specific marker?
or example, my username is DESKTOP-619H44D\USER , and it is very long, can I truncate by marekr '\" ?

![image](https://github.com/lsd-rs/lsd/assets/26200835/921601e5-bcbf-4196-aee0-0a55bdd56d03)

GNU ls show the user name only USER.
In Current, I can truncate username depending on number of characters

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Rust code that renders user and group names in directory listings, then trace the existing character-count truncation behavior. Implement the requested Windows-specific truncation after the backslash marker and verify that names such as DESKTOP-619H44\\USER display as USER while the current length-based behavior remains intact.

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.