icons

package
v0.264.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 2 Imported by: 0 modules, 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 resolves the glyph set once per run: Nerd Font when available (default), universal Unicode fallback, or off for decorative glyphs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(m Mode)

Apply activates a mode for the whole process.

Types

type Mode

type Mode int

Mode selects a glyph capability rung.

const (
	ModeNerdFont Mode = iota
	ModeUnicode
	ModeOff
)

func Parse

func Parse(s string) Mode

Parse maps a config string to a Mode. The accepted values are "nerdfont" (default), "unicode" and "off"; an empty string means the default, and any other value warns on stderr before falling back to nerdfont.

type Set

type Set struct {
	Profile, Store, Model, Tuple, Change, Query, Assert, APILog string
	Dot, Caret, Check, Cross                                    string
	CapL, CapR                                                  string // powerline chip caps
}

Set holds every glyph the UI uses.

func I

func I() Set

I returns the active glyph set.

Jump to

Keyboard shortcuts

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