Types
AstDocumentEditor = object id*: EditorId
- Source Edit
EditorType = enum Text, Ast, Model, Other
- Source Edit
LineNumbers = enum None = "none", Absolute = "Absolute", Relative = "relative"
- Source Edit
ModelDocumentEditor = object id*: EditorId
- Source Edit
SelectionCursor = enum Config = "config", Both = "both", First = "first", Last = "last", LastToFirst = "last-to-first"
- Source Edit
Selections = seq[Selection]
- Source Edit
SelectorPopup = object id*: EditorId
- Source Edit
TextDocumentEditor = object id*: EditorId
- Source Edit
Procs
func contains(selection: Selection; cursor: Cursor): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func contains(selection: Selection; other: Selection): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func contains(self: Selections; cursor: Cursor): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func contains(self: Selections; other: Selection): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func isBackwards(selection: Selection): bool {....raises: [], tags: [], forbids: [].}
- Returns true if the first cursor of the selection is after the second cursor Source Edit
func mergeLines(selections: Selections): Selections {....raises: [], tags: [], forbids: [].}
- Source Edit
proc newEditorId(): EditorId {....raises: [], tags: [], forbids: [].}
- Returns a new unique id for an editor Source Edit
proc normalize(self: var Selections) {....raises: [], tags: [], forbids: [].}
- Source Edit
func normalized(selection: Selection): Selection {....raises: [], tags: [], forbids: [].}
- Returns the normalized selection, i.e. where first < last. Switches first and last if backwards. Source Edit
proc normalized(self: Selections): Selections {....raises: [], tags: [], forbids: [].}
- Source Edit
func toSelection(cursor: Cursor): Selection {....raises: [], tags: [], forbids: [].}
- Source Edit
func toSelection(cursor: Cursor; default: Selection; which: SelectionCursor): Selection {. ...raises: [], tags: [], forbids: [].}
- Source Edit