Skip to content

Commands

module Commands
AssemblyRanvier.Plume
Attributes[<RequireQualifiedAccess>]

Functions and values

cursorCharLeft: Command
cursorCharRight: Command
cursorDocEnd: Command
cursorDocStart: Command
cursorGroupLeft: Command
cursorGroupRight: Command
cursorLineDown: Command
cursorLineEnd: Command
cursorLineStart: Command
cursorLineUp: Command
cursorPageDown: Command
cursorPageUp: Command

Moves up by the number of lines in Editor.PageLines.

cutSelection: Command

Deletes selected text as one cut transaction.

deleteCharBackward: Command

Deletes every range, or the character before a cursor.

deleteCharForward: Command

Deletes every range, or the character after a cursor.

insertNewline: Command

Replaces every range by the state's line separator.

insertNewlineKeepIndent: Command

Replaces every range by a line break and the white space the range's line starts with.

insertTab: Command

Inserts the state's indent unit.

insertText (text: string) : Command

Replaces every range by text.

ofState (command: StateCommand) (editor: Editor) : bool
pasteText (text: string) : Command

Pastes one line per range when their counts match. Otherwise each range receives the full text.

redo: Command

Redoes the history item last undone.

selectAll: Command
selectCharLeft: Command
selectCharRight: Command
selectDocEnd: Command
selectDocStart: Command
selectGroupLeft: Command
selectGroupRight: Command
selectLine: Command

Selects the lines of every range, each with its line break.

selectLineDown: Command
selectLineEnd: Command
selectLineStart: Command
selectLineUp: Command
selectPageDown: Command
selectPageUp: Command
undo: Command

Undoes the document's last history item.