Documentation
¶
Index ¶
- Constants
- func ListColorschemes() []string
- func ListSyntaxes() []string
- func NewBufferFromString(content string, path string) *buffer.Buffer
- type Action
- type ActionController
- type Colorscheme
- type KeyDesc
- type Keybindings
- type View
- func (v *View) ActionController() *ActionController
- func (v *View) Buffer() *buffer.Buffer
- func (v *View) Cursor() *buffer.Cursor
- func (v *View) Draw(screen tcell.Screen)
- func (v *View) GoToLoc(loc buffer.Loc)
- func (v *View) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (v *View) MapActionNameToAction(name string) Action
- func (v *View) MouseHandler() ...
- func (v *View) Relocate()
- func (v *View) SetColorscheme(cs Colorscheme)
- func (v *View) SetKeybindings(keybindings Keybindings)
Constants ¶
View Source
const ( ActionCursorUp = "CursorUp" ActionCursorDown = "CursorDown" ActionCursorPageUp = "CursorPageUp" ActionCursorPageDown = "CursorPageDown" ActionCursorLeft = "CursorLeft" ActionCursorRight = "CursorRight" ActionCursorStart = "CursorStart" ActionCursorEnd = "CursorEnd" ActionSelectToStart = "SelectToStart" ActionSelectToEnd = "SelectToEnd" ActionSelectUp = "SelectUp" ActionSelectDown = "SelectDown" ActionSelectLeft = "SelectLeft" ActionSelectRight = "SelectRight" ActionWordRight = "WordRight" ActionWordLeft = "WordLeft" ActionSelectWordRight = "SelectWordRight" ActionSelectWordLeft = "SelectWordLeft" ActionDeleteWordRight = "DeleteWordRight" ActionDeleteWordLeft = "DeleteWordLeft" ActionSelectLine = "SelectLine" ActionSelectToStartOfLine = "SelectToStartOfLine" ActionSelectToEndOfLine = "SelectToEndOfLine" ActionParagraphPrevious = "ParagraphPrevious" ActionParagraphNext = "ParagraphNext" ActionInsertNewline = "InsertNewline" ActionInsertSpace = "InsertSpace" ActionBackspace = "Backspace" ActionDelete = "Delete" ActionInsertTab = "InsertTab" ActionCenter = "Center" ActionUndo = "Undo" ActionRedo = "Redo" ActionCopy = "Copy" ActionCut = "Cut" ActionCutLine = "CutLine" ActionDuplicateLine = "DuplicateLine" ActionDeleteLine = "DeleteLine" ActionMoveLinesUp = "MoveLinesUp" ActionMoveLinesDown = "MoveLinesDown" ActionIndentSelection = "IndentSelection" ActionOutdentSelection = "OutdentSelection" ActionOutdentLine = "OutdentLine" ActionPaste = "Paste" ActionSelectAll = "SelectAll" ActionStart = "Start" ActionEnd = "End" ActionPageUp = "PageUp" ActionPageDown = "PageDown" ActionSelectPageUp = "SelectPageUp" ActionSelectPageDown = "SelectPageDown" ActionHalfPageUp = "HalfPageUp" ActionHalfPageDown = "HalfPageDown" ActionStartOfLine = "StartOfLine" ActionEndOfLine = "EndOfLine" ActionToggleRuler = "ToggleRuler" ActionToggleOverwriteMode = "ToggleOverwriteMode" ActionEscape = "Escape" ActionScrollUp = "ScrollUp" ActionScrollDown = "ScrollDown" ActionSpawnMultiCursor = "SpawnMultiCursor" ActionSpawnMultiCursorSelect = "SpawnMultiCursorSelect" ActionRemoveMultiCursor = "RemoveMultiCursor" ActionRemoveAllMultiCursors = "RemoveAllMultiCursors" ActionSkipMultiCursor = "SkipMultiCursor" ActionJumpToMatchingBrace = "JumpToMatchingBrace" ActionInsertEnter = "InsertEnter" ActionUnbindKey = "UnbindKey" ActionStartOfTextToggle = "StartOfTextToggle" ActionMousePress = "MousePress" ActionMouseDrag = "MouseDrag" ActionMouseRelease = "MouseRelease" ActionSetManualSelectionStart = "SetManualSelectionStart" ActionSetManualSelectionEnd = "SetManualSelectionEnd" ActionToggleBookmark = "ToggleBookmark" )
Actions
Variables ¶
This section is empty.
Functions ¶
func ListColorschemes ¶
func ListColorschemes() []string
func ListSyntaxes ¶
func ListSyntaxes() []string
Types ¶
type ActionController ¶
type Colorscheme ¶
type Colorscheme config.Colorscheme
func LoadInternalColorscheme ¶
func LoadInternalColorscheme(name string) (Colorscheme, bool)
func ParseColorscheme ¶
func ParseColorscheme(data string) Colorscheme
type KeyDesc ¶
func ParseKeySequence ¶
Utility function for parsing key sequences which have the same format as Smidgen keybindings
type Keybindings ¶
func ParseKeybindings ¶
func ParseKeybindings(config map[string]string) Keybindings
type View ¶
func (*View) ActionController ¶
func (v *View) ActionController() *ActionController
func (*View) InputHandler ¶
func (*View) MapActionNameToAction ¶
func (*View) MouseHandler ¶
func (v *View) MouseHandler() func(action tview.MouseAction, event *tcell.EventMouse, setFocus func(p tview.Primitive)) (consumed bool, capture tview.Primitive)
MouseHandler returns the mouse handler for this primitive.
func (*View) SetColorscheme ¶
func (v *View) SetColorscheme(cs Colorscheme)
func (*View) SetKeybindings ¶
func (v *View) SetKeybindings(keybindings Keybindings)
Click to show internal directories.
Click to hide internal directories.