icons

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package icons provides file type icon mappings for Nerd Fonts. Icons sourced from eza (MIT) and superfile (MIT).

Index

Constants

View Source
const DefaultDirIcon = "\U0000f07c"

DefaultDirIcon is used for directories without a specific icon.

View Source
const DefaultFileIcon = "\U0000f15b"

DefaultFileIcon is used when no specific icon is found.

Variables

View Source
var Directories = map[string]string{}/* 165 elements not displayed */

Directories maps directory names to Nerd Font icons.

View Source
var Extensions = map[string]string{}/* 567 elements not displayed */

Extensions maps file extensions to Nerd Font icons.

View Source
var Filenames = map[string]string{}/* 241 elements not displayed */

Filenames maps specific filenames to Nerd Font icons.

Functions

func GetIcon

func GetIcon(filename string, isDir bool) string

GetIcon returns the appropriate icon for a file based on its name. It checks filename first, then extension, then returns the default.

Types

This section is empty.

Jump to

Keyboard shortcuts

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