GhosttySelectionAdjust enum

Operation used to adjust a selection endpoint.

Adjustment mutates the selection's logical end endpoint, not whichever endpoint is visually bottom/right. This preserves keyboard and drag behavior for both forward and reversed selections.

@ingroup selection

Inheritance
Available extensions

Values

GHOSTTY_SELECTION_ADJUST_LEFT → const GhosttySelectionAdjust

Move left to the previous non-empty cell, wrapping upward.

const GhosttySelectionAdjust(0)
GHOSTTY_SELECTION_ADJUST_RIGHT → const GhosttySelectionAdjust

Move right to the next non-empty cell, wrapping downward.

const GhosttySelectionAdjust(1)
GHOSTTY_SELECTION_ADJUST_UP → const GhosttySelectionAdjust

Move up one row at the current column, or to the beginning of the line if already at the top.

const GhosttySelectionAdjust(2)
GHOSTTY_SELECTION_ADJUST_DOWN → const GhosttySelectionAdjust

Move down to the next non-blank row at the current column, or to the end of the line if none exists.

const GhosttySelectionAdjust(3)
GHOSTTY_SELECTION_ADJUST_HOME → const GhosttySelectionAdjust

Move to the top-left cell of the screen.

const GhosttySelectionAdjust(4)
GHOSTTY_SELECTION_ADJUST_END → const GhosttySelectionAdjust

Move to the right edge of the last non-blank row on the screen.

const GhosttySelectionAdjust(5)
GHOSTTY_SELECTION_ADJUST_PAGE_UP → const GhosttySelectionAdjust

Move up by one terminal page height, or to home if that would move past the top.

const GhosttySelectionAdjust(6)
GHOSTTY_SELECTION_ADJUST_PAGE_DOWN → const GhosttySelectionAdjust

Move down by one terminal page height, or to end if that would move past the bottom.

const GhosttySelectionAdjust(7)
GHOSTTY_SELECTION_ADJUST_BEGINNING_OF_LINE → const GhosttySelectionAdjust

Move to the left edge of the current line.

const GhosttySelectionAdjust(8)
GHOSTTY_SELECTION_ADJUST_END_OF_LINE → const GhosttySelectionAdjust

Move to the right edge of the current line.

const GhosttySelectionAdjust(9)
GHOSTTY_SELECTION_ADJUST_MAX_VALUE → const GhosttySelectionAdjust
const GhosttySelectionAdjust(2147483647)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromValue(int value) GhosttySelectionAdjust

Constants

values → const List<GhosttySelectionAdjust>
A constant List of the values in this enum, in order of their declaration.