Documentation
¶
Overview ¶
Package editor provides command editing functionality
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCommandNotFound is returned when a command with the given ID is not found ErrCommandNotFound = errors.New("command not found with ID") )
Error definitions
Functions ¶
This section is empty.
Types ¶
type EditorCancelledMsg ¶
type EditorCancelledMsg struct{}
type EditorMaker ¶
type EditorMaker struct {
App *services.AppService
Styles *styles.Styles
EditorKeyMap *keys.EditorKeyMap
// contains filtered or unexported fields
}
func (*EditorMaker) Make ¶
func (mm *EditorMaker) Make(id resource.ID, width, height int) (structure.ChildModel, error)
Make creates a new command editor model based on the command ID
type ErrClipboardCopyFailed ¶
type ErrClipboardCopyFailed struct {
Err error
}
ErrClipboardCopyFailed is returned when copying to clipboard fails
func (*ErrClipboardCopyFailed) Error ¶
func (e *ErrClipboardCopyFailed) Error() string
type ErrCommandLoadingFailure ¶
func (*ErrCommandLoadingFailure) Error ¶
func (e *ErrCommandLoadingFailure) Error() string
type ErrComposeCommand ¶
type ErrComposeCommand struct {
Err error
}
ErrComposeCommand represents an error when composing a command fails
func (*ErrComposeCommand) Error ¶
func (e *ErrComposeCommand) Error() string
type ErrNoCommandsSelected ¶
type ErrNoCommandsSelected struct{}
ErrNoCommandsSelected is returned when no commands are selected for an operation
func (*ErrNoCommandsSelected) Error ¶
func (*ErrNoCommandsSelected) Error() string
type ErrRestoreCommand ¶
type ErrRestoreCommand struct {
Err error
}
ErrRestoreCommand represents an error when restoring a command fails
func (*ErrRestoreCommand) Error ¶
func (e *ErrRestoreCommand) Error() string
type ErrSelectionMismatch ¶
type ErrSelectionMismatch struct{}
ErrSelectionMismatch is returned when selection is not compatible with the operation
func (*ErrSelectionMismatch) Error ¶
func (*ErrSelectionMismatch) Error() string
type ListMaker ¶
type ListMaker struct {
App services.AppServiceInterface
TableCustomActionKeyMap *keys.TableCustomActionKeyMap
FilterKeyMap *pkgTabs.FilterKeyMap
SortKeyMap *sort.KeyMap
ActionKeyMap *table.Action
EditorsCache table.EditorsCacheInterface
Styles *styles.Styles
Spinner *spinner.Model
}
type SearchMaker ¶
func (*SearchMaker) Make ¶
func (mm *SearchMaker) Make(_ resource.ID, width, height int) (structure.ChildModel, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.