Skip to content

appendToMemory

Saves the current selections to a memory. If existing selections have already been saved, the new selections are appended to the old. If the default register is used, the save selections are highlighted in green. Once stored in memory the selections are cleared from the editor. Selections can be restored using restoreAndClear.

Arguments

  • register (default="default") - The register to save the selections to. A register is a distinct memory bank where selections can be stored.
  • selectWordOnEmpty (default=true) - When true an empty selection is converted to a selection of the word currently under the cursor. With false the selection is unchanged before being appended to the selection memory.