<br><br><div class="gmail_quote">On 19 February 2010 16:51, Tony Rick <span dir="ltr"><<a href="mailto:tonyr@hevanet.com">tonyr@hevanet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 02/18/2010 02:15 PM, Lex Trotman wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I am assuming that you are talking about file templates.<br>
<br>
</blockquote></div>
You assume correctly.<br>
...<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
AFAIK the directories are only scanned & the menu created at startup, so thats why restart is needed.  Because its only needed if you add or remove a template, not when editing an existing one, no one has been irritated enough to do anything about it :-)<br>

<br>
</blockquote></div>
(see below)<br>
...<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
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.<br>

</blockquote></div>
Already exists, to wit:<br>
<br>
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.)<br>
</blockquote><div><br>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.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
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.<br>
</blockquote><div><br>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?<br>
<br>Cheers<br>Lex<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font color="#888888">
<br>
- tony</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de" target="_blank">Geany-devel@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
</div></div></blockquote></div><br>