Skip to content

Feature request: "blank" icon glyphs turn off all icons of that type #3134

@simonmandlik

Description

@simonmandlik

Is this a question?
No

Can this functionality be implemented utilising API?
No

Is your feature request related to a problem? Please describe.
I am using renderer.icons.glyphs.git on a daily basis, but the "ignore" icon seems superficial and distracting especially in repos with a lot of ignored paths.

The solution is to set renderer.icons.glyphs.git to whitespace, e.g. " ", however, when git icons are right-aligned and the longest name in nvim-tree window is ignored, this adds unnecessary whitespace to the right:

Image

Setting the icon glyph to an empty string "" doesn't solve this, because then the whole set of icons is disabled due to this condition:

-- don't use sign if not defined
if #icon.str < 1 then
self.icon_placement = "none"
return
end

Describe the solution you'd like
If the point of this condition is to only save compute, would it make sense to remove it or somehow improve the logic such that it is possible to achieve the above?

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR pleasenvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatedfeature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions