Hey there,
I was cleaning out old messages and came across this very old message
and realized I can contribute to the project now, so here it is as a
blast from the past:
Lex Trotman wrote:
>On 11 November 2015 at 15:04, Little Girl wrote:
>> rch wrote:
>>
>>> The following wild cards do not work
>>> {untitled} and (trying to get the full path)
>>> {command:readlink -f {ob}{untitled}{cb}}
>>> See lines 2, 6
>>
>> I'm not sure what's up with this. It might be because there's
>> already one untitled in the template, so the second one isn't
>> expanded on save. It might also be that untitled has to be within
>> the first X number of rows in the file (although there's nothing
>> about that in the manual).
>
>Yes untitled.xxx (where xxx is the file extension) has to be in the
>first three lines and only the first occurrence is replaced. This
>has nothing to do with templates, its a new-file save feature, and
>it does not appear to be documented, can you raise an issue so its
>not forgotten.
Issue #753 was created for updating the information about the
untitled wildcard and has been closed:
https://github.com/geany/geany/issues/753
PR #1804 was merged to take care of it:
https://github.com/geany/geany/pull/1804
That PR added the "Automatic filename insertion on Save As..."
section to the Geany documentation:
https://github.com/geany/geany/blob/master/doc/geany.txt#automatic-filename-insertion-on-save-as
The untitled wildcard is also mentioned in the "Dynamic Wildcards"
table section of geany.txt:
https://github.com/geany/geany/blob/master/doc/geany.txt#dynamic-wildcards
Neither of those two documentation sections mention that only the
first occurrence of the untitled wildcard will be replaced if there
are multiple occurrences. Also, the untitled wildcard's entry in the
"Dynamic wildcards" table doesn't yet mention that the wildcard must
be in the first three lines.
I've been on GitHub for quite some time now, so I can do a pull
request (or two pull requests if you prefer) to make those changes
and create one or two issues for them first if you like.
--
Little Girl
There is no spoon.
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]