Skip to content

Symlink and junction arrows render incorrectly #68

@MadameMinty

Description

@MadameMinty

Symlink and junction arrows render incorrectly on Windows default PowerShell (5.1.19041.1320).

Expected Behavior

When printing directory contents on Windows Terminal, symlinks and junctions display name as "icon link-name arrow target-name".

Current Behavior

When printing directory contents on Windows Terminal, symlinks and junctions display name as "icon link-name ï•” target-name".

image

Possible Solution

With 0.9.0, in Terminal-Icons.psm1:312 and Terminal-Icons.psm1:326 replace:
$displayInfo['Target'] = '  ' + $FileInfo.Target
with:
$displayInfo['Target'] = ' ' + $glyphs['nf-mdi-arrow_right_thick'] + ' ' + $FileInfo.Target

Steps to Reproduce (for bugs)

  1. Start Powershell
  2. mkdir Target
  3. mklink /J Link Target
  4. ls

Context

Arrows good. These are the only instances of explicit unicode glyphs in Terminal-Icons.psm1, so getting rid of them could be nice.

Your Environment

  • Module version used: 0.9.0
  • Operating System and PowerShell version: Windows 10, Windows Terminal, PSVersion 5.1.19041.1320. This is the system default.

PSVersion 7.2.0, which is installed separately, renders the glyph correctly.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions