common

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPalette = NewPalette()

Functions

func Close

func Close() tea.Msg

func CommandRunning

func CommandRunning(args []string) tea.Cmd

func FileSearch added in v0.9.1

func FileSearch(revset string, preview bool, commit *jj.Commit, rawFileOut []byte) tea.Cmd

func Refresh

func Refresh() tea.Msg

func RefreshAndKeepSelections added in v0.8.12

func RefreshAndKeepSelections() tea.Msg

func RefreshAndSelect

func RefreshAndSelect(selectedRevision string) tea.Cmd

func SelectionChanged

func SelectionChanged() tea.Msg

func ToggleHelp

func ToggleHelp() tea.Msg

func UpdateRevSet added in v0.9.0

func UpdateRevSet(revset string) tea.Cmd

Types

type AutoRefreshMsg added in v0.8.12

type AutoRefreshMsg struct{}

type CloseViewMsg

type CloseViewMsg struct{}

type CommandCompletedMsg

type CommandCompletedMsg struct {
	Output string
	Err    error
}

type CommandRunningMsg

type CommandRunningMsg string

type ExecMode added in v0.9.0

type ExecMode struct {
	Mode   string
	Prompt string
}
var ExecJJ ExecMode = ExecMode{
	Mode:   "jj",
	Prompt: ": ",
}
var ExecShell ExecMode = ExecMode{
	Mode:   "sh",
	Prompt: "$ ",
}

type ExecMsg added in v0.9.0

type ExecMsg struct {
	Line string
	Mode ExecMode
}

type FileSearchMsg added in v0.9.1

type FileSearchMsg struct {
	Revset       string
	PreviewShown bool
	Commit       *jj.Commit
	RawFileOut   []byte // raw output from `jj file list`
}

type Focusable

type Focusable interface {
	IsFocused() bool
}

type Palette

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

func NewPalette added in v0.9.0

func NewPalette() *Palette

func (*Palette) Get added in v0.9.0

func (p *Palette) Get(selector string) lipgloss.Style

func (*Palette) GetBorder added in v0.9.0

func (p *Palette) GetBorder(selector string, border lipgloss.Border) lipgloss.Style

func (*Palette) Update added in v0.8.12

func (p *Palette) Update(styleMap map[string]config.Color)

type QuickSearchMsg added in v0.8.3

type QuickSearchMsg string

type RefreshMsg

type RefreshMsg struct {
	SelectedRevision string
	KeepSelections   bool
}

type SelectionChangedMsg

type SelectionChangedMsg struct{}

type ShowDiffMsg

type ShowDiffMsg string

type ShowPreview added in v0.9.1

type ShowPreview bool

type Sizable

type Sizable interface {
	Width() int
	Height() int
	SetWidth(w int)
	SetHeight(h int)
}

type State

type State int
const (
	Loading State = iota
	Ready
	Error
)

type ToggleHelpMsg

type ToggleHelpMsg struct{}

type UpdateBookmarksMsg

type UpdateBookmarksMsg struct {
	Bookmarks []string
	Revision  string
}

type UpdateRevSetMsg added in v0.9.0

type UpdateRevSetMsg string

type UpdateRevisionsFailedMsg

type UpdateRevisionsFailedMsg struct {
	Output string
	Err    error
}

type UpdateRevisionsSuccessMsg added in v0.8.12

type UpdateRevisionsSuccessMsg struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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