diffviewer

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	common.Common
	// contains filtered or unexported fields
}

func New

func New() Model

func (*Model) GoToTop added in v0.3.1

func (m *Model) GoToTop()

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) LineDown added in v0.4.0

func (m *Model) LineDown(n int)

func (*Model) LineUp added in v0.4.0

func (m *Model) LineUp(n int)

func (*Model) ScrollDown added in v0.4.0

func (m *Model) ScrollDown(lines int)

ScrollDown scrolls the viewport down by the given number of lines.

func (*Model) ScrollUp added in v0.4.0

func (m *Model) ScrollUp(lines int)

ScrollUp scrolls the viewport up by the given number of lines.

func (Model) SetFilePatch

func (m Model) SetFilePatch(file *gitdiff.File) (Model, tea.Cmd)

func (*Model) SetSize

func (m *Model) SetSize(width, height int) tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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