diff

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Model
}

Content is a wrapper to use the commit ui as container.Content.

func NewContent

func NewContent(model Model) Content

func (Content) SetSize

func (c Content) SetSize(width, height int) container.Content

func (Content) Update

func (c Content) Update(msg tea.Msg) (container.Content, tea.Cmd)

func (Content) UpdateFocus

func (c Content) UpdateFocus(isFocused bool) (container.Content, tea.Cmd)

type KeyMap

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

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

func (KeyMap) ShortHelp

func (k KeyMap) ShortHelp() []key.Binding

type Model

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

The Model to display a git diff output.

func New

func New() Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) KeyMap

func (m Model) KeyMap() help.KeyMap

func (Model) SetContent

func (m Model) SetContent(rawDiff string, err error) Model

func (Model) SetSize

func (m Model) SetSize(width, height int) Model

func (Model) Title

func (m Model) Title() string

func (Model) Update

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

func (Model) UpdateFocus

func (m Model) UpdateFocus(isFocused bool) (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