I'm working on integrating GIT into my EAGLE flow by adding a new menu and
various scripts/ulp. As part of this it would be really handy to have
menu's where their entries can be dynamically generated each time they
open.
So for example the GIT menu would have a 'Branch' item which would lead to
a submenu containing currently available branches at the top, a separator
and then a "New branch...' item which would pop up a dialog to specify the
new branch. Next time the menu was accessed this new branch should be
listed automatically under the 'Branch' sub menu. This would also allow for
the sub-menu to be correctly populated automatically when opening a design
contained in an existing repository for the first time without having to go
and run any scripts to re-build the menu.
Now, I guess I could do this in a hacky way by writing out a script which
re-generates the menu based on examining the repository but I think it
would be nice if there were a cleaner way to do this, e.g. the ability for
a sub-menu to be populated on the fly by the execution of another
script/ulp.
Many thanks,
Rachael
--
Web access to CadSoft support forums at www.eaglecentral.ca. Where the CadSoft EAGLE community meets.