Don't display directory junctions with ls command on Windows
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 40.5k
- Forks
- 2.3k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 85
Description
Related problem
There are quite some directory junctions which are created by default on Windows. In its current state, nushell lists them with ls command. Listing them by default clutters the console unnecessarily since these items are different from user created alias
Describe the solution you'd like
It would be ideal if nushell is able to identify these directory junctions and display them only when ls -a is used. Both Powershell and git bash on Windows already follow the same behaviour
Additional context and details
These directory junctions can be specifically identified by running dir /ad in command prompt. They have <JUNCTION> written alongside them. Just attaching a screenshot below for further reference
Contributor guide
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 at the nushell ls command entry point and investigate how Windows directory entries are identified; use dir /ad to reproduce the junction markers described in the issue. The work is done when directory junctions are omitted from normal ls output but appear with ls -a, matching the reported PowerShell and git bash behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100