On Wed, 2008-11-12 at 12:34 +0000, Nick Treleaven wrote:
One idea: maybe when using New with Template and the template uses {filename}, Geany could flag this in a private document field, and not transform it until the file is saved. On saving, Geany could check if the 'replace_template_filename' field is set, and replace all instances of {filename} with the proper filename.
maybe geany could use some default name such as 'noname.ext' before a document is actually created. On saving it could use the template as a regular expression and locate the string 'noname.ext' and replace it with the actual value.
Jay