Skip to content

Cm5MouseSelectionConfiguration

Unofficial

Configuration for mouse selection behavior in CodeMirror 5.

Import:

import type { Cm5MouseSelectionConfiguration } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface Cm5MouseSelectionConfiguration

Properties

Property Type Description
addNew? boolean Whether to add a new range to the existing selection.
extend? boolean Whether to extend the existing selection range.
moveOnDrag? boolean Whether dragged content is moved (true) or copied (false).
unit? 'char' | 'line' | 'rectangle' | 'word' | Cm5SelectionUnit The unit by which to select.

Links to this page: