Le 22/08/2011 13:15, Thomas Martitz a écrit :
Am 22.08.2011 12:59, schrieb Lex Trotman:
On 22 August 2011 20:14, Thomas Martitz thomas.martitz@student.htw-berlin.de wrote:
Just curious. How does search for whole words in find in files adds to this mix? IIUC it uses grep's -w option?
Only in that it uses the same technique to select the default search string, but you get the chance to edit it for FIF, you don't get the chance for find usage, so find usage needs to be more correct or its not useful.
Uhm, I mean for FIF grep decides about the word boundaries, which may be different to GEANY_WORDCHARS and everything discussed here, no?
Yeah, once a new definition. Though this one is, according to the manual:
Word-constituent characters are letters, digits, and the underscore.
So it's the same as GEANY_WORDCHARS, but not Scintilla's definition. And it doesn't include any non-ASCII characters in the algorithm, making e.g. word search "hé" match "héhé" (second byte of the first "é" being treat as a separator).
I'm afraid making everything use one single definition will be near impossible :( But as Lex highlighted, in FIF it's less an issue since the user has a chance to edit the grabbed word.
Cheers, Colomban