files

package
v0.0.0-...-305ff81 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 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 DocType

type DocType int
const (
	Unstaged DocType = iota
	Staged
)

type HandleFileMsg

type HandleFileMsg struct {
	File      git.File
	Direction patch.Direction
}

type KeyConfig

type KeyConfig struct {
	HandleFileKey string
}

type RefreshMsg

type RefreshMsg struct{}

type UI

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

func NewView

func NewView(docType DocType, keyCfg KeyConfig, fg fileGetter, windowSize int) *UI

func (*UI) Init

func (u *UI) Init() tea.Cmd

func (*UI) Update

func (u *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*UI) UpdateFiles

func (u *UI) UpdateFiles() tea.Msg

func (*UI) View

func (dv *UI) View() string

Jump to

Keyboard shortcuts

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