Re: [code] [textadept] Little problem with ui.dialogs.filteredlist

From: Mitchell <>
Date: Fri, 26 May 2017 18:36:48 -0400 (EDT)

Hi Giovanni,

On Thu, 27 Apr 2017, Mitchell wrote:

> Hi Giovanni,
> On Thu, 27 Apr 2017, Giovanni Salmeri wrote:
>> Hello! I discovered what seems to me a little bug (or limit?) in
>> ui.dialogs.filteredlist. Minimal example:
>> ui.dialogs.filteredlist{items = {'first', 'second', '--third',
>> 'fourth'}, columns = {'item'}}
>> The item which begins with '--' and all the following ones are ignored.
>> Perhaps the reason is that -- is interpreted as the beginning of an
>> option in gtdialog? Is there a workaround? Thank you very much!
> Unfortunately, you've found a limitation :( The "--" prefix indeed is
> interpreted as another command line option. The only workaround is to avoid
> that switch and do some post-processing (e.g. use "%--third" and then check
> for leading "%" after the dialog returns). I'll add this issue to my list.
> Sorry about that.

I've looked into this and it's not trivial to handle invalid "--" switches
as plain text in the context of another active switch, so you'll have to
stick to the workaround.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Fri 26 May 2017 - 18:36:48 EDT

This archive was generated by hypermail 2.2.0 : Sat 27 May 2017 - 06:31:51 EDT