Skip to content

CommandSwitchesRecord

The stored form of the command switches, kept under COMMAND_SWITCHES_RECORD_KEY of the library’s reserved data.json record.

A wire format between plugin versions and devices: fields are only ever added, and an absent field means the default, so a reset deletes rather than writes a default.

Import:

import type { CommandSwitchesRecord } from '@mnaoumov/obsidian-lib/command-handlers/command-switches';

Signature:

export interface CommandSwitchesRecord

Properties

PropertyTypeDescription
hiddenCommandIds?readonly string[]The ids of the commands the user took out of the context menus.
shouldAddCommandsToSubmenu?booleanThe user's submenu choice, absent while the plugin's default applies.

Links to this page: