splitpreview

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DestinationSpec

type DestinationSpec struct {
	Type        DestinationType
	ChangeID    string
	Description string
}

type DestinationType

type DestinationType int
const (
	DestExistingRevision DestinationType = iota
	DestNewCommit
)

type Model

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

func New

func New() Model

func (*Model) Hide

func (m *Model) Hide()

func (*Model) IsVisible

func (m *Model) IsVisible() bool

func (*Model) SetSummaries

func (m *Model) SetSummaries(summaries []SplitSummary)

func (*Model) Show

func (m *Model) Show()

func (Model) View

func (m Model) View(width, height int) string

type SplitSummary

type SplitSummary struct {
	Tag         SplitTag
	Destination DestinationSpec
	FileCount   int
	HunkCount   int
}

type SplitTag

type SplitTag rune

Jump to

Keyboard shortcuts

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