Documentation
¶
Index ¶
- Variables
- func CircularSearch(items []screen.Searchable, query string, startIndex, cursor int, backward bool) int
- func Close() tea.Msg
- func CloseApplied() tea.Msg
- func Debounce(identifier string, duration time.Duration, cmd tea.Cmd) tea.Cmd
- func FileSearch(revset string, preview bool, commit *jj.Commit, rawFileOut []byte) tea.Cmd
- func IsInputMessage(msg tea.Msg) bool
- func Refresh() tea.Msg
- func RefreshAndKeepSelections() tea.Msg
- func RefreshAndSelect(selectedRevision string) tea.Cmd
- func RestoreOperation(op any) tea.Cmd
- func SelectionChanged(item SelectedItem) tea.Cmd
- func StartAceJump() tea.Cmd
- func UpdateRevSet(revset string) tea.Cmd
- type AutoRefreshMsg
- type CloseViewMsg
- type CommandCompletedMsg
- type CommandRunningMsg
- type DispatchActionMsg
- type Editable
- type ExecMode
- type ExecMsg
- type ExecProcessCompletedMsg
- type FileSearchMsg
- type Focusable
- type ImmediateModel
- type Overlay
- type Palette
- type QuickSearchMsg
- type RefreshMsg
- type RestoreOperationMsg
- type RunLuaScriptMsg
- type SelectedCommit
- type SelectedFile
- type SelectedItem
- type SelectedOperation
- type SelectedRevision
- type SelectionChangedMsg
- type ShowChooseMsg
- type ShowInputMsg
- type ShowPreview
- type StackedModel
- type StartAceJumpMsg
- type State
- type TogglePasswordMsg
- type UpdateBookmarksMsg
- type UpdateRevSetMsg
- type UpdateRevisionsFailedMsg
- type UpdateRevisionsSuccessMsg
- type ViewRange
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPalette = NewPalette()
Functions ¶
func CircularSearch ¶ added in v0.10.0
func CircularSearch(items []screen.Searchable, query string, startIndex, cursor int, backward bool) int
CircularSearch performs a circular search through searchable items. Returns the index of the first matching item, or cursor if no match is found.
func CloseApplied ¶ added in v0.9.9
func Debounce ¶ added in v0.9.7
Debounce waits for the given duration before running cmd; newer calls with the same identifier cancel previous ones.
func FileSearch ¶ added in v0.9.1
func IsInputMessage ¶ added in v0.9.10
func RefreshAndKeepSelections ¶ added in v0.8.12
func RefreshAndSelect ¶
func RestoreOperation ¶ added in v0.9.9
func SelectionChanged ¶
func SelectionChanged(item SelectedItem) tea.Cmd
func StartAceJump ¶ added in v0.9.9
func UpdateRevSet ¶ added in v0.9.0
Types ¶
type AutoRefreshMsg ¶ added in v0.8.12
type AutoRefreshMsg struct{}
type CloseViewMsg ¶
type CloseViewMsg struct {
Applied bool
}
type CommandCompletedMsg ¶
type CommandRunningMsg ¶
type DispatchActionMsg ¶ added in v0.10.0
type ExecProcessCompletedMsg ¶ added in v0.9.7
type FileSearchMsg ¶ added in v0.9.1
type ImmediateModel ¶ added in v0.9.11
type Palette ¶
type Palette struct {
// contains filtered or unexported fields
}
func NewPalette ¶ added in v0.9.0
func NewPalette() *Palette
type QuickSearchMsg ¶ added in v0.8.3
type QuickSearchMsg string
type RefreshMsg ¶
type RestoreOperationMsg ¶ added in v0.9.9
type RestoreOperationMsg struct {
Operation any
}
type RunLuaScriptMsg ¶ added in v0.9.8
type RunLuaScriptMsg struct {
Script string
}
type SelectedCommit ¶ added in v0.9.10
type SelectedCommit struct {
CommitId string
}
func (SelectedCommit) Equal ¶ added in v0.9.10
func (s SelectedCommit) Equal(other SelectedItem) bool
type SelectedFile ¶ added in v0.9.10
func (SelectedFile) Equal ¶ added in v0.9.10
func (s SelectedFile) Equal(other SelectedItem) bool
type SelectedItem ¶ added in v0.9.10
type SelectedItem interface {
Equal(other SelectedItem) bool
}
type SelectedOperation ¶ added in v0.9.10
type SelectedOperation struct {
OperationId string
}
func (SelectedOperation) Equal ¶ added in v0.9.10
func (s SelectedOperation) Equal(other SelectedItem) bool
type SelectedRevision ¶ added in v0.9.10
func (SelectedRevision) Equal ¶ added in v0.9.10
func (s SelectedRevision) Equal(other SelectedItem) bool
type SelectionChangedMsg ¶
type SelectionChangedMsg struct {
Item SelectedItem
}
type ShowChooseMsg ¶ added in v0.9.9
type ShowInputMsg ¶ added in v0.9.9
type ShowPreview ¶ added in v0.9.1
type ShowPreview bool
type StackedModel ¶ added in v0.10.0
type StackedModel interface {
ImmediateModel
StackedActionOwner() string
}
StackedModel is the contract for models presented in the stacked overlay. It includes the action owner so UI scope resolution can dispatch correctly.
type StartAceJumpMsg ¶ added in v0.9.9
type StartAceJumpMsg struct{}
type TogglePasswordMsg ¶ added in v0.9.9
type UpdateBookmarksMsg ¶
type UpdateRevSetMsg ¶ added in v0.9.0
type UpdateRevSetMsg string
type UpdateRevisionsSuccessMsg ¶ added in v0.8.12
type UpdateRevisionsSuccessMsg struct{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.