On Fri, 19 Feb 2010 17:49:14 +1100, Lex wrote:
>>> I suggest that the simplest start point would be to add a re-scan >>> menu item to the templates menu itself. It would just need to >>> destroy and re-create the menu. As I said its not needed very often >>> so the effort for automatic update probably isn't worth it. >>> >> Already exists, to wit: >> >> In v0.17 and v0.18, the template file list available in 'File->New >> (with Template)' is updated by when Tools->Reload Configuration is >> selected. The same is true for modified existing template files. >> Geany does not need to be restarted to update the menus and >> re-populate the internal templates list. The documentation does not >> reflect this new behavior, and in fact still says that Geany must be >> restarted to become aware of new custom templates. It just ain't >> so. (I'm looking at revision 4674, v0.17 source, and v0.18 source; >> revision 4674 seems leaner and cleaner.) >> > >You are right about that, I didn't look deep enough, and the manual in >SVN still says restart needed, feel free to submit a patch to fix the >manual, or even just some words in an email to this ml. That would be much appreciated :) >> The feature request, if I interpret it correctly, was for a new >> menu under Tools that listed all template files so that they could >> be selected for editing, rather than climbing down through the >> directory browser to find them. That is what I was proposing to >> work on. >> > >Looking at it again, yes I agree with your interpretation. Since the >tools menu is often extended by plugins maybe the templates need to be >a sub-menu rather than populating the top level tools menu with all >the standard and (unknown number of) user defined templates. What do >others think? I think that would be cool, IMO should be realised as a plugin (which we could ship with Geany itself, though this is another topic). I'd say it the plugin should add a submenu to Tools->Configuration Files or directly into the Tools menu, I don't mind much. Regards, Enrico -- Get my GPG key from http://www.uvena.de/pub.asc
pgpdcGQvvG5qw.pgp
Description: PGP signature
_______________________________________________ Geany-devel mailing list [email protected] http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
