Re:How MDN's Autocomplete Search Works
by est31 on Tuesday August 03, 2021 @01:47PM
(#28052012)
Yeah discourse does the same. Sometimes i want to search within a post for some keyword. But ctrl+f redirects you to the global search... that global search only helps if you want to find interesting posts, but it does not support searching inside one, nor does it allow limited search within a thread. So I started using / in discourse discussions. Then that one was being overridden as well. I've heard the recommendation that you turn js off, which gives you a saner experience.
[ Parent
| on HN ]
Re:How MDN's Autocomplete Search Works
by mikepurvis on Tuesday August 03, 2021 @03:31PM
(#28053121)
I hate this behaviour in discourse as well, but it hadn't occurred to me to try using it sans JS altogether, since it seemed to be pretty dependent on it. Will give that a shot for sure.
> But ctrl+f redirects you to the global search
Press ctrl-f twice.
Oh thanks for that trick. It violates the principle of least surprise so much but it does what I want. Thanks again!
Re:How MDN's Autocomplete Search Works
by chrismorgan on Tuesday August 03, 2021 @09:18PM
(#28056213)
I sometimes use Ctrl+G (Find Again) to get around sites hijacking / or Ctrl+F when I want to use the browser’s search functionality: if the current search doesn’t match anything or if there is nothing to search for, then it opens the browser’s find bar. If that was hijacked too, you could still focus browser chrome (e.g. Ctrl+L, Ctrl+K, Alt+D and sometimes even others to focus the address/search bar) and then press Ctrl+F.