Skip to content

insertAround

Insert text before and after each selection.

Arguments

  • before: the text to insert before each selection.
  • after: the text to insert after each selection.
  • expandWith: (default false) expand the selection to include the inserted text.
  • followCursor: (default false) if the cursor is at the start of the selection selection will expand to include the cursor, and if its at the end it will not expand. Expanding in this way leads to a natural symmetric typing experience when typing multiple keys. Best used in conjunction with Master Key. mode option onType.