30-seconds-of-code: [Suggestion] Scrolling the list with arrows

Created on 20 Dec 2017  路  7Comments  路  Source: 30-seconds/30-seconds-of-code

On the website, is it possible to scroll the lift side panel list with arrows? Like when you search for the snippet, the list gets filtered. If you could scroll the list with arrows and hit enter to view the snippet, it would be amazing.
(like how it happens on WhatsApp web)

I am not sure how setting focus on the list items works. If someone can guide me through it, I can work on it.

enhancement help wanted question website

Most helpful comment

This is a fairly annoying feature to implement since you need state. A clear design path before implementation would be need otherwise you run the risk of a hard to reason monster. The search would need to be re written to accommodate it. And the search was in such a nice snippet too. Oh well. That's the nature of refactoring for the future.

All 7 comments

That would be a nice feature, give it a try and I would be glad to merge a PR with it! 馃槈

Example

example

This is a fairly annoying feature to implement since you need state. A clear design path before implementation would be need otherwise you run the risk of a hard to reason monster. The search would need to be re written to accommodate it. And the search was in such a nice snippet too. Oh well. That's the nature of refactoring for the future.

I like what I see, but we want to avoid code bloating, as the website is getting heavier by the day. This might not be a necessary feature and I'm starting to question if we should implement it right now, based on what @skatcat31 said.

Yes it's too tedious...

This is exactly what I do at work: Let people know how hard, simple, or about what they want to do

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for any follow-up tasks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kingdavidmartins picture kingdavidmartins  路  5Comments

Speuta picture Speuta  路  3Comments

Chalarangelo picture Chalarangelo  路  5Comments

emelendez picture emelendez  路  4Comments

konglx90 picture konglx90  路  6Comments