Custom rendering for context menus?


#1

I’d like to play around with overriding Atom’s default context menu handling; it would be neat to embed interactive controls into the context menu, yet still render menu items exposed by other packages. (I know this would be highly experimental and likely brittle, but it’s too cool not to try.)

Does anyone have ideas, either on form factor or implementation details? (Obviously, I’m not trying to get other folks to do the research for me; I’m going to have to read Atom’s codebase closely before I do anything.)

For instance, it would be cool to have autosuggest on the context menu. Also, I’ve seen circular context menus in some 3D applications:

Example circular context menu


#2

Open up the dev console and enter console.log(atom.menu.packageManager.contextMenuManager). That has all of the registered context menu items.