filenode

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IconsNerdFonts    = "nerd-fonts"
	IconsNerdFontsAlt = "nerd-fonts-alt"
	IconsUnicode      = "unicode"
	IconsASCII        = "ascii"
)

Icon style constants.

Variables

This section is empty.

Functions

func GetFileName

func GetFileName(file *gitdiff.File) string

Types

type FileNode

type FileNode struct {
	File           *gitdiff.File
	Depth          int
	YOffset        int
	IconStyle      string
	Selected       bool
	ColorFileNames bool
	PanelWidth     int
}

func (FileNode) Children

func (f FileNode) Children() tree.Children

func (FileNode) Hidden

func (f FileNode) Hidden() bool

func (FileNode) Path

func (f FileNode) Path() string

func (FileNode) SetHidden added in v0.4.0

func (f FileNode) SetHidden(bool)

func (FileNode) SetValue added in v0.4.0

func (f FileNode) SetValue(any)

func (FileNode) StatusColor added in v0.5.0

func (f FileNode) StatusColor() lipgloss.Color

StatusColor returns the color for this file based on its git status.

func (FileNode) String

func (f FileNode) String() string

func (FileNode) Value

func (f FileNode) Value() string

Jump to

Keyboard shortcuts

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