leostera / tldr.jsx

📚 A Reactive web client for tldr-pages
https://tldr.ostera.io
MIT License
1.54k stars 75 forks source link

Set search to autofocus #152

Closed hawkins closed 6 years ago

hawkins commented 6 years ago

Hey there,

Thanks for making this app! Super handy for quick searches 👍

One little thing I noticed that would help is if the search bar autofocused on page load, so I could just type your URL in my browserm then without leaving the keyboard, I could type my query and be done. Saves reaching for the mouse 🤷‍♂️

Note: I didn't test this change; it just adds autofocus to the search input, and I'm fairly positive that's all this will take, so I made it inline on GitHub.

leostera commented 6 years ago

Thanks! This looks good to me. I'll see after deploy if it breaks anything.

gnclmorais commented 4 years ago

Thanks! I was going to add this (since it seems like it’s not live yet) and I noticed it already exists…! @ostera, any idea when will it be available at https://tldr.ostera.io? Thanks!