Documentation ¶
Index ¶
- Constants
- type Base64Hinter
- func (h *Base64Hinter) Activate(api HintAPI, match string, start termutil.Position, end termutil.Position) error
- func (h *Base64Hinter) Click(api HintAPI) error
- func (h *Base64Hinter) Deactivate(api HintAPI) error
- func (h *Base64Hinter) Match(text string, cursorIndex int) (matched bool, offset int, length int)
- type DmesgTimestampHinter
- func (h *DmesgTimestampHinter) Activate(api HintAPI, match string, start termutil.Position, end termutil.Position) error
- func (h *DmesgTimestampHinter) Click(api HintAPI) error
- func (h *DmesgTimestampHinter) Deactivate(api HintAPI) error
- func (h *DmesgTimestampHinter) Match(text string, cursorIndex int) (matched bool, offset int, length int)
- type HexColourHinter
- func (h *HexColourHinter) Activate(api HintAPI, match string, start termutil.Position, end termutil.Position) error
- func (h *HexColourHinter) Click(api HintAPI) error
- func (h *HexColourHinter) Deactivate(api HintAPI) error
- func (h *HexColourHinter) Match(text string, cursorIndex int) (matched bool, offset int, length int)
- type HintAPI
- type Hinter
- type HinterRegistration
- type PermsHinter
- func (h *PermsHinter) Activate(api HintAPI, match string, start termutil.Position, end termutil.Position) error
- func (h *PermsHinter) Click(api HintAPI) error
- func (h *PermsHinter) Deactivate(api HintAPI) error
- func (h *PermsHinter) Match(text string, cursorIndex int) (matched bool, offset int, length int)
- type Priority
- type URLHinter
Constants ¶
View Source
const ( PriorityNone = 0 PriorityVeryLow = 48 PriorityLow = 96 PriorityMedium = 128 PriorityHigh = 192 PriorityVeryHigh = 224 PriorityCritical = 255 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base64Hinter ¶
type Base64Hinter struct {
// contains filtered or unexported fields
}
func (*Base64Hinter) Click ¶
func (h *Base64Hinter) Click(api HintAPI) error
func (*Base64Hinter) Deactivate ¶
func (h *Base64Hinter) Deactivate(api HintAPI) error
type DmesgTimestampHinter ¶
type DmesgTimestampHinter struct{}
func (*DmesgTimestampHinter) Click ¶
func (h *DmesgTimestampHinter) Click(api HintAPI) error
func (*DmesgTimestampHinter) Deactivate ¶
func (h *DmesgTimestampHinter) Deactivate(api HintAPI) error
type HexColourHinter ¶
type HexColourHinter struct { }
func (*HexColourHinter) Click ¶
func (h *HexColourHinter) Click(api HintAPI) error
func (*HexColourHinter) Deactivate ¶
func (h *HexColourHinter) Deactivate(api HintAPI) error
type Hinter ¶
type Hinter interface { // Match should return the index in the text of the matched occurrence Match(text string, cursorIndex int) (matched bool, offset int, length int) // Activate fires when mouseover happens afer a match - takes raw coords Activate(api HintAPI, match string, start termutil.Position, end termutil.Position) error Deactivate(api HintAPI) error Click(api HintAPI) error }
type HinterRegistration ¶
type PermsHinter ¶
type PermsHinter struct { }
func (*PermsHinter) Click ¶
func (h *PermsHinter) Click(api HintAPI) error
func (*PermsHinter) Deactivate ¶
func (h *PermsHinter) Deactivate(api HintAPI) error
Click to show internal directories.
Click to hide internal directories.