Skip to content

Cm5SelectionOptions

Unofficial

Options for selection operations in CodeMirror 5.

Import:

import type { Cm5SelectionOptions } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface Cm5SelectionOptions

Properties

Property Type Description
bias? number Direction into which selection endpoints should be adjusted (-1 backward, 1 forward).
origin? string Determines whether the selection history event may be merged with the previous one.
scroll? boolean Determines whether the selection head should be scrolled into view.