header

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCompatibility added in v0.7.0

func WithCompatibility(c config.Compatibility) func(*listItem)

Types

type Model

type Model struct {
	Expand        bool
	DefaultHeight int
	ExpandHeight  int
	Placeholder   string
	Emoji         emoji.Emoji
	Emojis        []emoji.Emoji
	Amend         bool
	// contains filtered or unexported fields
}

func New

func New(state *commit.State) Model

func ToModel added in v0.4.0

func ToModel(m tea.Model, c tea.Cmd) (Model, tea.Cmd)

func (*Model) Blur

func (m *Model) Blur()

func (*Model) CursorStartSummary added in v0.8.0

func (m *Model) CursorStartSummary()

func (*Model) Focus

func (m *Model) Focus()

func (Model) Focused

func (m Model) Focused() bool

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) ResetSummary added in v0.8.0

func (m *Model) ResetSummary()

func (*Model) SelectEmoji

func (m *Model) SelectEmoji()

func (*Model) SelectSummary

func (m *Model) SelectSummary()

func (*Model) SetSummary added in v0.8.0

func (m *Model) SetSummary(str string)

func (Model) Summary

func (m Model) Summary() string

func (*Model) ToggleAmend added in v0.8.0

func (m *Model) ToggleAmend()

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Styles

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

Jump to

Keyboard shortcuts

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