So I searched for ContextMenuHandlers MSDN on google and found this page:
That page explains how the other Windows editors are achieving their magic. Specifically, under the first topic:
Because shortcut menus are often used for file management, the Shell provides a set of default commands, such as Cut and Copy, that appear on the shortcut menu for any file system object such as a file or a folder.
So it would seem that what you want, if you want to enable similar behavior as other popular windows-based text editors of the day, is to create a ādefaultā command.
Iāll also make a note that Windows context menus support Shift+RightClick for an āextendedā context menu, which (for example) enables the Windows built-in CMD Prompt Here/Powershell Here actions. I personally like to utilize that to organize less-often used items. For example, Iād happily delegate 7-zip to Shift+RightClick, if it was an option in 7-zip. I personally want my āOpen with Text Editorā¦ā option to be a regular Context Menu action but figured Iād mention it since it might be a config option worth considering for others.
@jstine35, thanks for that digging. Thatās the general way it currently works in Komodo. I guess it could be an opt in thing to add it to every files context menu. I personally would not be happy if a program (that didnāt need to) added itself to every file context menu. Notepad++ sticks out like a soar thumb in that screen shot.
What would be interesting is if I could get a heat-map of the menu items I actually use, by frequency. If such a thing existed, the hottest items on my menu would be:
Edit in Notepad++ TortoiseGit
The coldest items would be:
Open (why does this exist? thatās what enter/double-click is for!) Troubleshoot Compatibility (maybe this was more useful in 2011 on Vista?) CRC SHA (I just removed this, which was added by 7-zip) Scan with Windows Defender Share Pin to Taskbar (I just right-click the taskbar and pin running apps from there) Send To
So nearly every default item added by Microsoft, besides cut/copy/properties/PinToStart/RunAsAdmin, are the most unused things on my context menu. Iām really quite happy to have any other app add something with any actual potential use to this menu. From my perspective, adding something actually useful like āEdit in A Good Text Editorā greatly improves the value of this context menu which is normally this oddly-easy thing to bring up with oddly obscure and unhelpful ātoolsā listed within it. Adding useful tools is a good thing!
Open (why does this exist? thatās what enter/double-click is for!)
Some people prefer ā or are compelled by physical problems ā to use keyboard only, and the āOpenā menu item allows them to be sure of whatās about to happen, vs. typing Enter and not being sure because the focus looks like itās on the file but isnāt (some OSs and some UI schemes are worse than others in that regard).
Ok just want to clarify that there is a quorum since @mjross started this post. The ask here is that on install, Komodo adds a āEdit with Komodoā to every file type. This would be opt in in the installer.
The most viable option will be to extend the existing Prefs stuff to add this menu to ALL file types. The alternative is writing what MIGHT be a bunch of new code in WIX (not the online website builder) to implement this in the installer. Iāll have to do some digging to see if I can make that job more viable.
@mjross, if that all makes sense, can you file it and link back to this thread?
Certainly, but Iām not sure what you mean by āfile itā, since it is already documented here as a feature request. Do you mean file it as a bug report? (My confusion may be caused by travel-induced sleep deprivation.)
@mjross, as in github. We donāt track feature work in the forums. This is just to see if people/the community are on board with the suggested feature.