filenode

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: 10 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

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