As you can see in my pic (hopefully), DO just sticks them between "New Folder" and "New...". (Explorer kind of does the same, i.e., just adds them to the end un-grouped. Both TortoiseSVN and TortoiseGit managed to register their context-menu extensions in such a way that both Explorer and DO displayed them in their own group.
Anyway, I found in the File Types settings (for All Folders) where DO is picking up Git's context menus Is there a way for me to tell DO to group them? (Using "Begin a Group" in the "All Folders" context menu editor has no effect, and that's probably understandable.)
Do you care about using those items outside of Opus?
If not, making a note of the commands they run, then deleting them and re-creating them as Opus-specific items* is the easiest way. You can then move those around among the other items.
(* "Run an Opus Function" when creating a new context menu item.)
Otherwise, with that type of context menu, it may require some manual registry editing. (With other types of context menu, it may be different. There are several very different ways things can add to the menus.)
I use Opus exclusively, so, no, I don't care about anything outside of Opus.
My goals are 1.) organization of my context-menu, and 2.) keep the Git commands within the context-menu.
I know how to create a custom button and whatnot. I have scores of them. But how do I put and organize it properly in the right-click context menu? Perhaps I am editing the wrong file type ("All folders"), or, more likely, not enough of them, but doing as you suggest is not yielding good results.
So for the context menu for "All folders," I replaced the original "Run an application" with a "Standard function (Opus or external)" and also marked it as "Begin Group Here," and I saw no change in the above shown menu. (This is when I am just right-clicking a blank area in the folder pane [see pic below], so perhaps it's a different "File Type..." I need to edit for that.)
When I actually do right-click on an actual folder, my new "Git Bash Here" menu item does seem to show up in it's own group--well, a separator line is shown above it.
So I guess I'm getting close. Which "File Type..." governs the context menu shown when right-clicking on an empty area in Opus' the display pane:
The menu you get when right-clicking the file display background is different. To edit that, close the File Types dialog and go to Settings > Customize Toolbars > Context Menus > Lister Context.
Within that there will be a special item that looks like this:
That inserts all the non-Opus items from the shell into the menu.
You can remove that, or move it into a sub-menu so it's available but not cluttering things up, and replace it with custom commands which only do what you want, in the order you want.
You can also/instead turn on Preferences / Miscellaneous / Windows Integration / Hide Windows items on file context menus (shift overrides), which will skip all non-Opus items automatically unless shift is held down. I do this myself, then add in explicit entires for the handful of things I actually want. The excluded items can still be revealed by holding shift in the rare cases I need them, while everything is kept clean the rest of the time.