bgrins / itchpad

A rough experiment smashing together the style editor and scratchpad.
3 stars 0 forks source link

Allow plugins to define their own top level menu items #27

Open bgrins opened 10 years ago

bgrins commented 10 years ago

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.

campd commented 10 years ago

Plugin-defined menu creation is one of the more difficult problems in computer science.

bgrins commented 10 years ago

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