On 14 April 2011 23:27, Liviu Andronic landronimirc@gmail.com wrote:
Dear devels The {datetime} & {date} templates are updated only after reloading the config. To reproduce insert {datetime} in ~/.config/geany/templates/changelog, reload the config and then in a blank document do c-menu > insert > changelog. Wait a minute (or an hour, or a day) and insert again the entry, and you will notice that Geany always uses the time of the last Tools > Reload config, and not the current system time. The behaviour can easily make the user insert the wrong time (or even day or week, when keeping the session alive using suspend) when compiling logs.
Is this something that could be easily fixed? Thank you Liviu
System: Geany 0.20 on Xubuntu 10.04 64bit
Yes the {datetime} and {date} are substituted when the templates are initialised, usually when Geany is opened. As you say this may not be very useful.
This can be changed just by moving the call to templates_replace_default_dates, but where to?
Options are:
1. when the document is created from the template 2. when the document is saved as a file (when untitled gets replaced)
Votes please.
Cheers Lex