Skip to content

CommandHandlerRegistrationContext

Context provided to command handlers during registration.

Import:

import type { CommandHandlerRegistrationContext } from 'obsidian-dev-utils/obsidian/command-handlers/command-handler';

Signature:

export interface CommandHandlerRegistrationContext

Properties

PropertyTypeDescription
activeFileProviderActiveFileProviderProvider for accessing the currently active file.
menuEventRegistrarMenuEventRegistrarRegistrar for menu event handlers.
pluginNamestringThe name of the plugin that owns this command.