panels

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPalette

func ApplyPalette(p tuipanels.Palette)

func StatusBar

func StatusBar(d *node.Diff, view string, width int, searchMode bool, searchQuery string, matchCount int, version string) string

Types

type InfoPanel

type InfoPanel struct {
	// contains filtered or unexported fields
}

func NewInfoPanel

func NewInfoPanel(d *node.Diff, w, h int) InfoPanel

func (*InfoPanel) Resize

func (p *InfoPanel) Resize(w, h int)

func (*InfoPanel) SetFocused

func (p *InfoPanel) SetFocused(f bool)

func (*InfoPanel) SetHunkIdx

func (p *InfoPanel) SetHunkIdx(i int)

func (*InfoPanel) View

func (p *InfoPanel) View() string

type SplitPanel

type SplitPanel struct {
	// contains filtered or unexported fields
}

func NewSplitPanel

func NewSplitPanel(d *node.Diff, w, h int) SplitPanel

func (*SplitPanel) CycleFocus

func (p *SplitPanel) CycleFocus()

func (*SplitPanel) HalfPageDown

func (p *SplitPanel) HalfPageDown()

func (*SplitPanel) HalfPageUp

func (p *SplitPanel) HalfPageUp()

func (*SplitPanel) MatchCount

func (p *SplitPanel) MatchCount() int

func (*SplitPanel) NextMatch

func (p *SplitPanel) NextMatch()

func (*SplitPanel) PrevMatch

func (p *SplitPanel) PrevMatch()

func (*SplitPanel) Resize

func (p *SplitPanel) Resize(w, h int)

func (*SplitPanel) ScrollDown

func (p *SplitPanel) ScrollDown(n int)

func (*SplitPanel) ScrollUp

func (p *SplitPanel) ScrollUp(n int)

func (*SplitPanel) SetSearch

func (p *SplitPanel) SetSearch(q string)

func (*SplitPanel) View

func (p *SplitPanel) View() string

type UnifiedPanel

type UnifiedPanel struct {
	// contains filtered or unexported fields
}

func NewUnifiedPanel

func NewUnifiedPanel(d *node.Diff, w, h int) UnifiedPanel

func (*UnifiedPanel) CurrentHunkIdx

func (p *UnifiedPanel) CurrentHunkIdx() int

func (*UnifiedPanel) HalfPageDown

func (p *UnifiedPanel) HalfPageDown()

func (*UnifiedPanel) HalfPageUp

func (p *UnifiedPanel) HalfPageUp()

func (*UnifiedPanel) MatchCount

func (p *UnifiedPanel) MatchCount() int

func (*UnifiedPanel) NextMatch

func (p *UnifiedPanel) NextMatch()

func (*UnifiedPanel) PrevMatch

func (p *UnifiedPanel) PrevMatch()

func (*UnifiedPanel) Resize

func (p *UnifiedPanel) Resize(w, h int)

func (*UnifiedPanel) ScrollDown

func (p *UnifiedPanel) ScrollDown(n int)

func (*UnifiedPanel) ScrollUp

func (p *UnifiedPanel) ScrollUp(n int)

func (*UnifiedPanel) SetFocused

func (p *UnifiedPanel) SetFocused(f bool)

func (*UnifiedPanel) SetSearch

func (p *UnifiedPanel) SetSearch(q string)

func (*UnifiedPanel) SetTextOnly added in v1.0.0

func (p *UnifiedPanel) SetTextOnly(v bool)

func (*UnifiedPanel) View

func (p *UnifiedPanel) View() string

Jump to

Keyboard shortcuts

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