Help us shape the future of Go! Take the 2026 Go Developer Survey

views

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BisectView

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

BisectView manages interactive git bisect.

func NewBisectView

func NewBisectView(gitSvc git.Service, styles ui.Styles) *BisectView

NewBisectView creates a new BisectView.

func (*BisectView) Init

func (v *BisectView) Init() tea.Cmd

func (*BisectView) InputCapture

func (v *BisectView) InputCapture() bool

func (*BisectView) SetSize

func (v *BisectView) SetSize(w, h int)

func (*BisectView) ShortHelp

func (v *BisectView) ShortHelp() []components.HelpEntry

func (*BisectView) Update

func (v *BisectView) Update(msg tea.Msg) (common.View, tea.Cmd)

func (*BisectView) View

func (v *BisectView) View() string

type BranchView

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

BranchView manages branches.

func NewBranchView

func NewBranchView(gitSvc git.Service, styles ui.Styles) *BranchView

NewBranchView creates a new BranchView.

func (*BranchView) Init

func (v *BranchView) Init() tea.Cmd

func (*BranchView) InputCapture

func (v *BranchView) InputCapture() bool

func (*BranchView) SetSize

func (v *BranchView) SetSize(w, h int)

func (*BranchView) ShortHelp

func (v *BranchView) ShortHelp() []components.HelpEntry

func (*BranchView) Update

func (v *BranchView) Update(msg tea.Msg) (common.View, tea.Cmd)

func (*BranchView) View

func (v *BranchView) View() string

type ConflictView

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

ConflictView helps resolve merge conflicts.

func NewConflictView

func NewConflictView(gitSvc git.Service, styles ui.Styles) *ConflictView

NewConflictView creates a new ConflictView.

func (*ConflictView) Init

func (v *ConflictView) Init() tea.Cmd

func (*ConflictView) InputCapture

func (v *ConflictView) InputCapture() bool

func (*ConflictView) SetSize

func (v *ConflictView) SetSize(w, h int)

func (*ConflictView) ShortHelp

func (v *ConflictView) ShortHelp() []components.HelpEntry

func (*ConflictView) Update

func (v *ConflictView) Update(msg tea.Msg) (common.View, tea.Cmd)

func (*ConflictView) View

func (v *ConflictView) View() string

type DiffView

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

DiffView shows the diff for all changes or a selected file.

func NewDiffView

func NewDiffView(gitSvc git.Service, styles ui.Styles) *DiffView

NewDiffView creates a new DiffView.

func (*DiffView) Init

func (v *DiffView) Init() tea.Cmd

func (*DiffView) InputCapture

func (v *DiffView) InputCapture() bool

func (*DiffView) SetSize

func (v *DiffView) SetSize(w, h int)

func (*DiffView) ShortHelp

func (v *DiffView) ShortHelp() []components.HelpEntry

func (*DiffView) Update

func (v *DiffView) Update(msg tea.Msg) (common.View, tea.Cmd)

func (*DiffView) View

func (v *DiffView) View() string

type LogView

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

LogView shows the commit log with an ASCII graph.

func NewLogView

func NewLogView(gitSvc git.Service, styles ui.Styles) *LogView

NewLogView creates a new LogView.

func (*LogView) Init

func (v *LogView) Init() tea.Cmd

func (*LogView) InputCapture

func (v *LogView) InputCapture() bool

func (*LogView) SetSize

func (v *LogView) SetSize(w, h int)

func (*LogView) ShortHelp

func (v *LogView) ShortHelp() []components.HelpEntry

func (*LogView) Update

func (v *LogView) Update(msg tea.Msg) (common.View, tea.Cmd)

func (*LogView) View

func (v *LogView) View() string

type PlaceholderView

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

PlaceholderView is a temporary stub for tabs not yet implemented.

func NewPlaceholderView

func NewPlaceholderView(name string, styles ui.Styles) *PlaceholderView

NewPlaceholderView creates a placeholder with the given tab name.

func (*PlaceholderView) Init

func (v *PlaceholderView) Init() tea.Cmd

func (*PlaceholderView) InputCapture

func (v *PlaceholderView) InputCapture() bool

func (*PlaceholderView) SetSize

func (v *PlaceholderView) SetSize(w, h int)

func (*PlaceholderView) ShortHelp

func (v *PlaceholderView) ShortHelp() []components.HelpEntry

func (*PlaceholderView) Update

func (v *PlaceholderView) Update(_ tea.Msg) (common.View, tea.Cmd)

func (*PlaceholderView) View

func (v *PlaceholderView) View() string

type RebaseView

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

RebaseView handles interactive rebase operations.

func NewRebaseView

func NewRebaseView(gitSvc git.Service, styles ui.Styles) *RebaseView

NewRebaseView creates a new RebaseView.

func (*RebaseView) Init

func (v *RebaseView) Init() tea.Cmd

func (*RebaseView) InputCapture

func (v *RebaseView) InputCapture() bool

func (*RebaseView) SetSize

func (v *RebaseView) SetSize(w, h int)

func (*RebaseView) ShortHelp

func (v *RebaseView) ShortHelp() []components.HelpEntry

func (*RebaseView) Update

func (v *RebaseView) Update(msg tea.Msg) (common.View, tea.Cmd)

func (*RebaseView) View

func (v *RebaseView) View() string

type RemoteView

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

RemoteView manages remotes and push/pull/fetch operations.

func NewRemoteView

func NewRemoteView(gitSvc git.Service, styles ui.Styles) *RemoteView

NewRemoteView creates a new RemoteView.

func (*RemoteView) Init

func (v *RemoteView) Init() tea.Cmd

func (*RemoteView) InputCapture

func (v *RemoteView) InputCapture() bool

func (*RemoteView) SetSize

func (v *RemoteView) SetSize(w, h int)

func (*RemoteView) ShortHelp

func (v *RemoteView) ShortHelp() []components.HelpEntry

func (*RemoteView) Update

func (v *RemoteView) Update(msg tea.Msg) (common.View, tea.Cmd)

func (*RemoteView) View

func (v *RemoteView) View() string

type StashView

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

StashView manages the stash list.

func NewStashView

func NewStashView(gitSvc git.Service, styles ui.Styles) *StashView

NewStashView creates a new StashView.

func (*StashView) Init

func (v *StashView) Init() tea.Cmd

func (*StashView) InputCapture

func (v *StashView) InputCapture() bool

func (*StashView) SetSize

func (v *StashView) SetSize(w, h int)

func (*StashView) ShortHelp

func (v *StashView) ShortHelp() []components.HelpEntry

func (*StashView) Update

func (v *StashView) Update(msg tea.Msg) (common.View, tea.Cmd)

func (*StashView) View

func (v *StashView) View() string

type StatusView

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

StatusView is the primary working-tree view.

Layout (when diff is visible):

┌─ Files ─────────┐┌─ Diff Preview ────────┐
│ ▸ M path/to/f… ││ @@ -1,3 +1,5 @@       │
│   A new_file.go ││ +added line            │
│   ? untracked   ││ -removed line          │
│                 ││                        │
└─────────────────┘└────────────────────────┘
 s stage  u unstage  c commit  d diff  x discard

func NewStatusView

func NewStatusView(gitSvc git.Service, styles ui.Styles) *StatusView

func (*StatusView) Init

func (v *StatusView) Init() tea.Cmd

func (*StatusView) InputCapture

func (v *StatusView) InputCapture() bool

func (*StatusView) SetSize

func (v *StatusView) SetSize(width, height int)

func (*StatusView) ShortHelp

func (v *StatusView) ShortHelp() []components.HelpEntry

func (*StatusView) Update

func (v *StatusView) Update(msg tea.Msg) (common.View, tea.Cmd)

func (*StatusView) View

func (v *StatusView) View() string

type WorktreeView

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

WorktreeView manages linked working trees.

func NewWorktreeView

func NewWorktreeView(gitSvc git.Service, styles ui.Styles) *WorktreeView

NewWorktreeView creates a new WorktreeView.

func (*WorktreeView) Init

func (v *WorktreeView) Init() tea.Cmd

func (*WorktreeView) InputCapture

func (v *WorktreeView) InputCapture() bool

func (*WorktreeView) SetSize

func (v *WorktreeView) SetSize(w, h int)

func (*WorktreeView) ShortHelp

func (v *WorktreeView) ShortHelp() []components.HelpEntry

func (*WorktreeView) Update

func (v *WorktreeView) Update(msg tea.Msg) (common.View, tea.Cmd)

func (*WorktreeView) View

func (v *WorktreeView) View() string

Jump to

Keyboard shortcuts

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