Documentation ¶
Index ¶
- type LineRange
- type Range
- func (r *Range) AddRange(begin, end int)
- func (r *Range) AddSelPoint(end int)
- func (r *Range) ClearSelection()
- func (r *Range) HasSelection() bool
- func (r *Range) IsLineSelected(n int) bool
- func (r *Range) IsOnlyLineSelected(n int) bool
- func (r *Range) Parse(s string) error
- func (r *Range) RemoveRange(begin, end int)
- func (r *Range) SetRange(begin, end int)
- func (r *Range) String() string
- func (r *Range) ToggleLine(n int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Range ¶
type Range struct { Sel []*LineRange // contains filtered or unexported fields }
Range maintains the list of ranges
func (*Range) AddSelPoint ¶
AddSelPoint adds selection between previous selection point and the one provided (to be used with Shift+clicking to select ranges with the mouse)
func (*Range) HasSelection ¶
HasSelection returns true if there's some selection
func (*Range) IsLineSelected ¶
IsLineSelected returns true if the line number is in any of the selection ranges
func (*Range) IsOnlyLineSelected ¶
IsOnlyLineSelected returns true if the line number is the only line selected
func (*Range) RemoveRange ¶
RemoveRange removes selection range potentially breaking apart or adjusting other ranges
func (*Range) ToggleLine ¶
ToggleLine either adds or removes the line from selection
Click to show internal directories.
Click to hide internal directories.