Open bgrins opened 10 years ago
Plugin-defined menu creation is one of the more difficult problems in computer science.
FWIW, the atom editor uses a JSON like file for defining these things (like in https://github.com/atom/find-and-replace/blob/master/menus/find-and-replace.cson). That is pretty nice, but if we at least exposed something like https://github.com/erikvold/addon-pathfinder/blob/master/lib/ui/menuitems.js, then plugins could programmatically create them in init
We may need more control than currently provided with
this.host.createMenuItem
. For instance, we may want an entire menu designated just for 'find' functionality.