[DEV] Improving file and editor menu

Use case or problem

file-menu and editor-menu is a complete mess. Many plugins add option here, without separator or option. As the order is not predictable, it finishes having a complete mess :

01-01-2022_18-55

Proposed solution

Two solution here :

  • In the API, add a way to place and class our plugin in the menu, as menu.position(1). I know if a lot plugin uses the same position, it will not solve the problem. So, in this case : class alphabetically, the menu.
  • Add a drop-down, allowing group option by plugin.
  • Separate Obsidian option to plugin and group them.

Obsidian Option are, here the command to, for example :

  • Delete files
  • Create a PDF
  • Open with default application
  • Toggle LP/Source Mode
    etc…

Current workaround (optional)

The only way to change the order of this menu is to edit community-plugin.json, and it doesn’t work for Obsidian command.

Related feature requests (optional)

/

6 Likes

This is very important, I wonder if there is a better solution, it’s hard to imagine that such an important feature, is not solved!

  • There is now “section” to add to specific place command
  • The submenu (not in the API + not on mobile) exists, so we just need to wait to have the typing and the mobile support!