Skip to content

OpenDialogOptions

Unofficial

Options for opening an interactive dialog in the editor (e.g., Vim command line).

Import:

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

Signature:

export interface OpenDialogOptions

Properties

PropertyTypeDescription
bottomnumberWhether to display the dialog at the bottom of the editor.
closeOnBlurbooleanWhether to close the dialog when it loses focus.
closeOnEnterbooleanWhether to close the dialog when the Enter key is pressed.
selectValueOnOpenbooleanWhether to select the input value when the dialog opens.
valuestringInitial value for the dialog input.

Methods

MethodReturnsDescription
onClose(div)voidCallback invoked when the dialog is closed.
onInput(e, value, callback)voidCallback invoked when the dialog input value changes.
onKeyDown(e, value, callback)voidCallback invoked when a key is pressed down in the dialog.
onKeyUp(e, value, callback)voidCallback invoked when a key is released in the dialog.