npyscreen icon indicating copy to clipboard operation
npyscreen copied to clipboard

Looking to be able to type a partial string match in a MultiLine list picker.

Open bgupta opened this issue 7 years ago • 3 comments

I would like to be able to start typing in a MultiLine widget and have the list of choices narrowed down to only those list items that match.

(This is particularly useful for lists with large numbers of members.)

Edit: Looks like this exists. I'm wondering if we can make the behavior more intuitive. IE: you start typing without having to know the filter keys : l, L, n, p.

bgupta avatar Oct 05 '16 18:10 bgupta

There are different ways to do this. Try pressing 'L'.

More complex widgets can also be built based around 'mutt-style' forms. There are some examples of this included

On Wed, Oct 5, 2016 at 7:55 PM, Brian Gupta [email protected] wrote:

I would like to be able to start typing in a MultiLine widget and have the list of choices narrowed down to only those list items that match.

(This is particularly useful for lists with large numbers of members.)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/npcole/npyscreen/issues/36, or mute the thread https://github.com/notifications/unsubscribe-auth/AB9ez2RFjZv0VVIoLMqg5Q7ZkCTjeOOwks5qw_KSgaJpZM4KPKUp .

npcole avatar Oct 07 '16 15:10 npcole

Not sure if you saw my edit. "Edit: Looks like this exists. I'm wondering if we can make the behavior more intuitive. IE: you start typing without having to know the filter keys : l, L, n, p."

bgupta avatar Oct 31 '16 17:10 bgupta

I misunderstood your comment. I'll look at the mutt style forms and see if they are more intuitive.

bgupta avatar Oct 31 '16 22:10 bgupta