Skip to content

[BUG] "New canvas" and "New base" context menu items appear unconditionally (even when plugins are disabled) #1439

Description

@bobrock-git

Description: When right-clicking a folder in Notebook Navigator's file tree, the context menu always displays the "New canvas" and "New base" options.

The issue is that these options are shown unconditionally, regardless of whether the user actually has the Obsidian core "Canvas" plugin or the community "Bases" plugin enabled. For example, I have the Canvas core plugin explicitly disabled in my vault, yet "New canvas" still clutters the context menu when I right-click a folder.

Because these items are injected without identifying attributes (like SVG icons or aria-label), users also cannot target them with custom CSS snippets to hide them.

Expected behavior: Notebook Navigator should conditionally render these context menu items. It should check if the Canvas plugin is enabled in the vault before injecting "New canvas" into the menu (and similarly for community plugins like Bases). Alternatively, providing toggles in Notebook Navigator's settings to customize the context menu would completely solve this.

Steps to reproduce:

Go to Settings -> Core Plugins and disable the Canvas plugin.
Open the Notebook Navigator pane.
Right-click any folder in the tree.
Observe that "New canvas" still appears in the context menu.
Environment:

Notebook Navigator version: 3.3.2
OS: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixed!Implemented and donenext releaseFeature will arrive in next release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions