Skip to content

NOTEBOOK_NAVIGATOR_MENU_SOURCE

The source handed to the menu event handlers for a Notebook Navigator menu.

Obsidian’s own File Explorer sends file-explorer-context-menu; nothing in this library gates on the value, but the handlers are contracted to receive one, and a distinct string is what makes a handler able to tell the two surfaces apart.

Import:

import { NOTEBOOK_NAVIGATOR_MENU_SOURCE } from 'obsidian-dev-utils/obsidian/notebook-navigator';

Signature:

const NOTEBOOK_NAVIGATOR_MENU_SOURCE: "notebook-navigator-context-menu"

Type: “notebook-navigator-context-menu”