icons

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package icons maps file names and extensions to Nerd Font glyphs. Requires a Nerd Font (https://www.nerdfonts.com/) to display correctly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForEntry

func ForEntry(name string, isDir bool) string

ForEntry returns the Nerd Font icon string for a file entry. name is the base filename; isDir indicates whether it's a directory.

Types

type Style

type Style struct {
	Icon string
}

Style holds the Nerd Font icon glyph for a file entry. The Icon string includes a trailing space for separation from the filename.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL