News for hackers. Stuff that matters.
Re:How does the classic Win32 ListView handle incremental se... by Terr_ on Wednesday April 10, 2024 @10:22PM (#39997788)
IMO it all hinges on whether the UI offers somewhere for the user to iteratively construct (and view) a "current search string".

If the user can press "c","a","t" and see "cat" somewhere, then it makes sense that the "catapult" is selected, and that typing "t" might to go "cattle".

However if you don't have that meta-state and a way to display it, then each individual keypress becomes a matter of picking a new selection based on the current selection. Hence the ruleset of "if the selected item starts with the same letter, go to the next item with the same starting letter, otherwise go to the first item that starts with the letter."

Re:How does the classic Win32 ListView handle incremental se... by PaulDavisThe1st on Thursday April 11, 2024 @12:09AM (#39998293)
In Chen's example, the ruleset is not what you've described here. It is: if the selected item starts with the same letter, go to the next item with the same starting letter, otherwise go to the first item whose spelling matches the letters given so far."

That's why you can match llama by typing "lla"