Documentation
¶
Overview ¶
Contains share types for the editor
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbsoluteCharacterRange ¶
TODO -- this might be useful for clarifying the exact position of the character selection
type Position ¶
Position represents a cursor position in a multi-row selection. Both row and column values start from 1
type TextSelection ¶
type TextSelection struct { CursorPosition Position // cursor position, using rows and columns Content string SelectionStart Position // beginning position of the selection }
TextSelection represents the position and content of the editor's current text selection
func (TextSelection) HasSelection ¶
func (s TextSelection) HasSelection() bool
HasSelection returns true if there is a current text selection
Click to show internal directories.
Click to hide internal directories.