Skip to content

XML glyph renders with an extra space before filename #34

@tillig

Description

@tillig

Expected Behavior

Most of the icons render in a single character width; I expect the XML icon to also render in one character.

Current Behavior

On both Windows (PowerShell 7.1.3 / Windows Terminal) and Mac (PowerShell 7.1.3 / iTerm2) the XML icons appear to insert a leading space before the filename. Other icons don't do that.

Here's JetBrainsMono Nerd Font:

JetBrainsMono Nerd Font

Here's FiraCode Nerd Font:

FiraCode Nerd Font

It doesn't seem to matter about the font or the terminal, there's always that extra space.

Possible Solution

I'm not sure if it's a double-character glyph where the extra space is an artifact or if there's a hidden character in the icon theme I haven't seen yet. Double-wide glyphs can get weird.

Steps to Reproduce (for bugs)

  1. Set up your terminal to use FiraCode Nerd Font or JetBrainsMono Nerd Font. Doesn't seem to matter if it's Mac or Windows.
  2. List a folder with an XML file in it.

Context

New user of the module, just noticed the odd spacing when listing a folder.

Your Environment

  • Module version used: 0.4.0
  • Operating System and PowerShell version: MacOS Big Sur 11.2.3, PowerShell 7.1.3, iTerm2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions