icons

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package icons provides Nerd Font icon lookup for file system entries.

Index

Constants

View Source
const IconWidth = 2

Variables

This section is empty.

Functions

func ForFile

func ForFile(name string, isDir bool, isEmpty bool) rune

func Prefix

func Prefix(name string, isDir bool, isEmpty bool, mode Mode) string

func ShouldShow

func ShouldShow(mode Mode) bool

Types

type Mode

type Mode string
const (
	ModeAuto   Mode = "auto"
	ModeAlways Mode = "always"
	ModeNever  Mode = "never"
)

Jump to

Keyboard shortcuts

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