nushell / nushell/nushell

Don't display directory junctions with ls command on Windows

Open
#11,148 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A:file-system category:enhancement deprecated:platform-specific platform:windows
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

image

Contributor guide

Open the contributing guide

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.