[Geany-devel] Use filetype-specific word characters for auto-completion?

Enrico Tröger enrico.troeger at xxxxx
Sun Sep 9 13:47:07 UTC 2012


attached is a simple patch which enables using the 'wordchars' setting
from the various filetype definition files also for auto-completion,
i.e. to decide whether the entered character should start/continue
auto-completion or not.

Previously, we always used the hard-coded default set of wordchars
(except for LaTeX where we added a backslash in the code).

The patch retains the special LaTeX hack and also the default behaviour
of using Geany's default set of wordchars if not specific in the
filetype definition file of the current filetype.

Using special wordchars for auto-completion might be better for some
languages. I was playing around with some Django template tags and there
I noticed we ignore the wordchars in the filetype definition file for
This patch might change the auto-completion behaviour if there are
wordchars in a filetype definition file is set for a certain filetype.
I would definitely add a note to the docs that the wordchars setting is
also applied for auto-completion (just forgot it in the attached patch).

Any objections?


Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use_filetype_wordchars_for_autocompletion.diff
Type: text/x-patch
Size: 2431 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20120909/6f16a24e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.geany.org/pipermail/devel/attachments/20120909/6f16a24e/attachment.pgp>

More information about the Devel mailing list