Ticket #4161 (new enhancement)

Opened 4 years ago

Last modified 4 years ago

Add quick search for listboxes

Reported by: jedi7 Owned by:
Priority: major Milestone: Future Releases
Component: mc-core Version: master
Keywords: listbox search chown Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

This patch add support to fast move to item in list.
When a-z key is pressed, then it search first character in list and move select to him.

It is extremely usable on chown dialog, where searching for proper name is hell.
Now you can just press first character of name and it moves here.

Patch attached and also here: https://github.com/MidnightCommander/mc/pull/160

Attachments

0001-Add-support-for-fast-select-in-listbox-by-key.patch (2.5 KB) - added by jedi7 4 years ago.
patch

Change History

Changed 4 years ago by jedi7

patch

comment:1 Changed 4 years ago by andrew_b

Related to #1636.

comment:2 Changed 4 years ago by andrew_b

  • Branch state changed from on review to no branch
  • Summary changed from Add fast search for listboxes to Add quick search for listboxes

If you propose your patches to some project, please don't ignore coding style used in that project.

Use of first char only for quick search is semi-solution. Only [a-z] chars are handled, all other chars (capital letters, digits, non-latin chars) are ignored. Full-functional quick search (as in file panel) should be implemented for WListbox widget.

comment:3 Changed 4 years ago by jedi7

The search was supposed mainly for the chown dialog, where are only a-z chars. I have no knowledge for bigger changes in this project. So I choosed this KISS solution.

Note: See TracTickets for help on using tickets.