autocomplete-plus icon indicating copy to clipboard operation
autocomplete-plus copied to clipboard

Idea for faster suggestion selection

Open aruseni opened this issue 9 years ago • 6 comments

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.

autocomplete

Here, for example, I would press ctrl + 3 for selecting StrictRedis.

aruseni avatar May 21 '15 23:05 aruseni

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 avatar May 21 '15 23:05 joefitzgerald

@joefitzgerald And this is why I clearly specified that some sort of modifier key should be used. Or, alternatively, some key pressed before.

aruseni avatar May 21 '15 23:05 aruseni

Gotcha. I missed that detail. With a modifier, yes, I agree that's a good idea.

joefitzgerald avatar May 21 '15 23:05 joefitzgerald

Great idea!

nonameolsson avatar Apr 27 '16 21:04 nonameolsson

+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.

Bouzmine avatar Jan 14 '17 02:01 Bouzmine

In lib/suggestion-list-element.js line 471, simply adding one line can add numerations to the list entry.

iconContainer.innerText = index
suggestion-list-QA

QiyueSun avatar Apr 23 '19 02:04 QiyueSun