[Geany-Devel] pull request on GitHub, to add GeanyHighlightSelectedWords, into Geany Plugins
Colomban Wendling
lists.ban at xxxxx
Sat May 30 01:21:11 UTC 2015
Le 29/05/2015 00:10, marius buzea a écrit :
>
> https://github.com/sblatnick/geany-plugins/blob/master/quick-search/src/quick-search.c.
>
> […]
>
> The quick-search.c calls Geany's search_find_text several times in one
> processing, and each time a regex would be recompiled in search_find_text.
> This is, I guess, a small cost when the regex is just a string.
search_find_text() doesn't do regex search when the flags don't ask for
it, it only uses SCI_FINDTEXT().
=====
BTW, @Steven: search_find_text() is *NOT* part of the Geany plugin API
and never have been. The fact you can use it is a issue of the way
Geany API was exported, and it is fixed in the dev version (meaning it
won't work anymore). Not also that this never worked on Windows.
If you need the function, tell us and we can probably add it. Though
here all you need is SCI_FINDTEXT, that is already available through
sicnitlla_send_commend(sci, SCI_FINDTEXT, flags, ttf).
Cheers,
Colomban
More information about the Devel
mailing list