Currently the dolphin context menu looks a bit cluttered. See this screenshot:
An alternative to solve this would be to allow Dolphin to create QActions in the “Actions” submenu. This is currently not possible. We could achieve this by passing in the “Actions” QMenu or the actions we ant to add to an overload of the int KFileItemActions::addServiceActionsTo(QMenu *mainMenu) and plugin based method. In KF6 we could use a default parameter.
This way we could add actions to the menu from the dolphin side of things and populate it with the service based menus and better organize our actions and actually can reuse existing logic. Like the “open Terminal Here” functionality, which also has a shortcut assigned to it. This would make Dolphin more intuitive and also save us from writing an entire plugin to fix the bug that the “Open Terminal Here” action does not respect the “Default Applications” KCM. Also this change would make it work on windows too.
Also we could create a method which will add both the service+plugin actions(often there methods are called after one another). Once it is possible to add actions to the "Actions" menu we could debate how we can reorganize our menus. For example I feel like the "Compress" menu should really be inside of the "Actions" submenu. And we could implement logic like "if we already have an Actions menu we want to add this plugin to it, if not then in the root menu".