Documentation ¶
Index ¶
- func DiffPrettyText(diffs []diffmatchpatch.Diff, enabled bool, reviewMode bool) string
- type LineChange
- type Model
- func (m Model) AllLineChangesDisabled() bool
- func (m Model) GetFocusedLineChange() *LineChange
- func (m Model) GetHeight() int
- func (m Model) IsItemEnabled(idx int) bool
- func (m *Model) MoveCursor(lines int) int
- func (m *Model) MoveCursorToHead()
- func (m *Model) MoveCursorToTail()
- func (m Model) OpenInEditor() tea.Cmd
- func (m Model) Replace()
- func (m *Model) SetLineChangesEnabled(enabled bool)
- func (m *Model) ToggleItemEnabled(idx int)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View(width uint) string
- type PastHeadMsg
- type PastTailMsg
- type UpdateMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffPrettyText ¶
func DiffPrettyText(diffs []diffmatchpatch.Diff, enabled bool, reviewMode bool) string
Types ¶
type LineChange ¶
type Model ¶
func (Model) AllLineChangesDisabled ¶
func (Model) GetFocusedLineChange ¶
func (m Model) GetFocusedLineChange() *LineChange
func (Model) IsItemEnabled ¶
func (*Model) MoveCursor ¶
func (*Model) MoveCursorToHead ¶
func (m *Model) MoveCursorToHead()
func (*Model) MoveCursorToTail ¶
func (m *Model) MoveCursorToTail()
func (Model) OpenInEditor ¶
func (*Model) SetLineChangesEnabled ¶
func (*Model) ToggleItemEnabled ¶
type PastHeadMsg ¶
type PastHeadMsg struct{}
type PastTailMsg ¶
type PastTailMsg struct{}
Click to show internal directories.
Click to hide internal directories.