icons

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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