[Geany] Keyword auto completion?

Nick Treleaven nick.treleaven at xxxxx
Fri Jul 11 14:07:14 UTC 2008


On Fri, 11 Jul 2008 13:37:59 +0200
Micael <m8847 at abc.se> wrote:

> As far as I can understand, there's no keyword autocompletion. With
> this I mean e.g. that I type "wh" and hit space, where the editor
> exanps the keyword and builds the construct, such as: 
>  while ( )
>  {
>  }
>       .. or similar.
> 
> I understand that the functionality is almost there, by instead use
> TAB, but only once the full keyword has been entered. i.e. while<TAB>
> builds the construct.

You can set the 'Complete snippet' keybinding to space if you like.

> I also realise that snippets could be enhanced to do this, if there
> would be an optional accept length? 
> e.g: "accept keyword min len lookup = 2" would give the correct
> key-word expansion after at least wh and TAB where entered.
> (Obviously whi<TAB> would also work)

Maybe this could be implemented. For now you could edit
~/.geany/snippets.conf and change the 'while' key to 'wh'.

Regards,
Nick



More information about the Users mailing list