Good afternoon. Does the Obsidian SDK support the ability for plugin developers to add submenus or nested menus when right-clicking a file/folder in the navigator and/or note?
Thanks!
Good afternoon. Does the Obsidian SDK support the ability for plugin developers to add submenus or nested menus when right-clicking a file/folder in the navigator and/or note?
Thanks!
This is how to do it for file/folder in the left file-navigation panel : Task-Board/main.ts at 220c81f942e2ec25f9fce1e4ef5144e02d457af6 · tu2-atmanand/Task-Board · GitHub
This is how to do it on basically any HTML component in Obsidian : Task-Board/src/components/KanbanView/LazyColumn.tsx at 220c81f942e2ec25f9fce1e4ef5144e02d457af6 · tu2-atmanand/Task-Board · GitHub
In the second example, you may see the way to add the subMenu as well. I am not sure, but I think subMenu is an internal API. Someone may please confirm this.
Thank you for the reply. I ask because I use a couple of plugins that add too many options on the right-click menu and have submitted issues asking of the commands could me moved to sub-menus to clean up a messy contest menu. I was told that sub-menu capabilities are not part of the Obsidian API. But I have seen some extensions (like Folder Notes) that do use submenus so I thought I would ask if submenus are supported. I would like to send some information to the plugin developers to see if submenus can be implemented.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.