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
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