Re: Re: [code] [textadept] Regex-functionality

From: johannes <jodak932.att.gmail.com>
Date: Wed, 23 May 2018 07:26:34 +0200

I tried the | Operator with NIGHTLY_2018-05-19.x86_64, and there it
worked also for me. So it was fixed somewhere in between this build and
Alpha 3.

Cheers,
Johannes

Am 21.05.2018 um 15:51 schrieb Mitchell:
> Hi Johannes,
>
> On Sun, 20 May 2018, johannes wrote:
>
>> Hello Mitchell,
>>
>> some weeks ago I searched for a new texteditor and finally discovered
>> Textadept. Mainly because of the wide configuration possibilities and
>> the
>> clear api-documentation. So thank you for your great work.
>>
>> My configuration efforts ended up in writing additional functions
>> which I
>> want to pack together in an open source module. The module will
>> include a
>> "goto_keyline" and "goto_related_keyline" functionality which should
>> be based
>> on regex pattern-matching. These functions should be working similar
>> like
>> goto-symbol and goto definition. Therefore I wrote a function in the
>> style of
>> yours "find_in_files"-function. With this function the performance of
>> finding
>> matches seems good. Anyway, to do the proper matching, I'm missing some
>> standard regex-functionality:
>>     -   The operator for alternatives doesn't work, i.e. (foo|bar)
>> doesn't
>> match foo
>
> This works for me when I use the Find & Replace pane with the "Regex"
> and "In Files" options selected. Can you be more specific?
>
>>     -   the search token \n doesn't detect newlines
>>     -   Whitespace \s* doesn't include newlines (\n)
>
> Yes, it looks like multi-line regex searching does not work. Thanks
> for the report.
>
>>
>> Also I found a bug in find_in_files search:
>> -   If a find-results starts at line beginning, the result get's wrong
>> selected when cycling through the results
>
> Thanks for the report. I will look into this.
>
> Cheers,
> Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 23 May 2018 - 01:26:34 EDT

This archive was generated by hypermail 2.2.0 : Wed 23 May 2018 - 06:43:53 EDT