autocomplete-plus
autocomplete-plus copied to clipboard
Idea for faster suggestion selection
There’s a very useful feature in Konqueror — it allows you to easily navigate through links on web pages by using keyboard. It displays letters near each link, and if you press a letter on the keyboard, the corresponding link is opened.
I think that same approach can be used here. Numbers (or letters) are asigned to each suggestion, and for selecting suggestion #4
, instead of pressing down, down, down, enter
, you just press ctrl + 4
.
Here, for example, I would press ctrl + 3
for selecting StrictRedis.
There's no way to implement this with auto activation or manual activation of the suggestion list because any character you would use for selecting a suggestion would be a valid character for further refining the suggestions. :thumbsdown:.
@joefitzgerald And this is why I clearly specified that some sort of modifier key should be used. Or, alternatively, some key pressed before.
Gotcha. I missed that detail. With a modifier, yes, I agree that's a good idea.
Great idea!
+1, just thought about this and tried to find a package that does this and I didn't find any. I think it would be a great standard feature.
In lib/suggestion-list-element.js
line 471, simply adding one line can add numerations to the list entry.
iconContainer.innerText = index
