filenode

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IconsNerdStatus   = "nerd-fonts-status"
	IconsNerdSimple   = "nerd-fonts-simple"
	IconsNerdFiletype = "nerd-fonts-filetype"
	IconsNerdFull     = "nerd-fonts-full"
	IconsUnicode      = "unicode"
	IconsASCII        = "ascii"
)

Icon style constants.

Variables

This section is empty.

Functions

func DiffStats added in v0.8.0

func DiffStats(file *gitdiff.File) (int64, int64)

func GetFileName

func GetFileName(file *gitdiff.File) string

func ViewDiffStats added in v0.8.0

func ViewDiffStats(added, deleted int64, base lipgloss.Style) string

func ViewFileDiffStats added in v0.8.0

func ViewFileDiffStats(file *gitdiff.File, base lipgloss.Style) string

Types

type FileNode

type FileNode struct {
	File       *gitdiff.File
	Depth      int
	YOffset    int
	Selected   bool
	PanelWidth int
	Cfg        config.Config
}

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() color.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