jeffalo / ocular

forum search for scratch
https://ocular.jeffalo.net
52 stars 27 forks source link

Press forward slash to set focus on search bar #158

Closed DNin01 closed 2 years ago

DNin01 commented 2 years ago

I noticed some websites (including GitHub and Bing) have this specific keyboard shortcut, and that's / to search. ocular is about searching, so a little enhancement to make searching ever so slightly faster might be cool.

  1. If you need to change your search terms right after you search, you won't have to lift your fingers off the keyboard (your fingers will probably be over the keyboard already)
  2. You'll never need to spend time moving the mouse pointer up to the search bar
  3. This would help keyboard-only users save even more time
jeffalo commented 2 years ago

this is a really good idea. thanks!

jeffalo commented 2 years ago

done in ocular-rewritten! d3693265bcb24bbffe3a632869b7e8ff4b0592df

DNin01 commented 2 years ago

Nice! I've also seen that s is another shortcut key for jumping to the search bar, so maybe you could add that option, too?

jeffalo commented 2 years ago

i haven't seen s much.. which sites use s?

(edit: i accidently closed the issue, ignore that)

DNin01 commented 2 years ago

i haven't seen s much.. which sites use s?

(edit: i accidently closed the issue, ignore that)

GitHub's secondary search key is S, and Bing switched to using S.

cobaltt7 commented 2 years ago

Google uses / tho


From: DNin01 @.> Sent: Tuesday, July 19, 2022 2:48:51 PM To: jeffalo/ocular @.> Cc: Subscribed @.***> Subject: Re: [jeffalo/ocular] Press forward slash to set focus on search bar (Issue #158)

i haven't seen s much.. which sites use s?

(edit: i accidently closed the issue, ignore that)

GitHub's secondary search key is S, and Bing switched to using S.

— Reply to this email directly, view it on GitHubhttps://github.com/jeffalo/ocular/issues/158#issuecomment-1189487427, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOT5DEWQLM36RXBBOEIGE2LVU4BCHANCNFSM5ZHLOSJQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

DNin01 commented 2 years ago

Alright, we have / to search. Feel free to add s to search later, but I think this issue is, for the most part, done.