[Geany] New Templates?

Enrico Tröger enrico.troeger at xxxxx
Wed Jul 18 16:35:00 UTC 2007


On Wed, 18 Jul 2007 08:59:59 -0400, Lee Underwood <leeu at cfl.rr.com>
wrote:

> On Wed, 18 Jul 2007 12:24:09 +0100 Nick Treleaven
> <nick.treleaven at btinternet.com> wrote:
> 
> | On 07/17/2007 09:37:47 PM, Lee Underwood wrote:
> | > Is it possible to create personal templates and have them show up
> | > on the dropdown list under the "New" selection on the menu?
> | > 
> | If you mean one template per filetype, then yes, see:
> | http://geany.uvena.de/manual/ch04s04.html#id2815287
> | 
> | Although for now you have to restart Geany after adding a new
> | filetype template, or editing an existing one.
> | 
> | Regards,
> | Nick
> 
> 
> Actually, I don't mean filetype templates. I mean a template for a
> page layout, e.g., a certain type of template for an article, one for
> news..
As Nick mentioned it isn't really possible at the moment. But it would
be a good reason for another plugin ;-).

As a workaround, admittedly a bit ugly, you could use an auto
completion for this. Again, this is ugly and should be only used for
temporary usage.

Please read http://geany.uvena.de/manual/ch03s05.html#editing_cc for
general usage of custom auto completions.
Then open the file ~/.geany/autocompletions.conf and find the default
section. Add a line like the following one:
news=18.07.2007 - enrico - Test subject\nThis is an example news entry
without any content.\nEdit this as needed.

All the above must be in one line. After Geany was restarted you can
type "news" and after pressing TAB Geany will replace news with the
text defined for the news key.

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.key
Powered by Debian GNU/Linux, GnuPG and Sylpheed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20070718/0339f2d9/attachment.pgp>


More information about the Users mailing list