Discourse apparently overrides cmd-f. So I cannot use cmd-f to find text on a page. Instead I get redirected to use the search already indicated by the magnifying glass at the top right. Can this cmd-f override be shut off?
Turns out that itās a complex topic. The workaround to to press Command-F-F to get the in-page search.
The problem is that the standard in-page search may not work in Discourse in longer topics because not all the text may be available for searching.
Or manually mouse to the menu and hit it there. Although that takes forever in comparison.
Personally, I find things that override fundamental functionality of a Mac (like cmd-f or cmd-c) to be just annoying, no matter how good the intention. I could always use the search box if thatās what I really wanted. If I donāt chose to, itās most likely because I donāt want to.
Right! Edit > Find > Find also works, but is annoying.
I can see their logic, but I agree with you about overriding default behaviors being a bad thing.
Personally I think itās a very sensible default when they know that much of the content on the page wonāt actually be searched by doing the default search.
Itās sensible in the case where somebody just opens the page, does no scrolling, and then wants to search.
Itās not sensible when a reader has read through a thread, scrolled all the way to the bottom while doing so, and then wants to search. For example, let me jump back up to the post by Adam. In such a case itās just duplicating already existing functionality at the expense of breaking expected default behavior on any Mac.
That may be ok for some, it isnāt for others. Thatās why IMHO there should be a user option. That option could actually point out why in one case you wouldnāt want to use standard Mac search.
Well, itās worth noting that, in my brief testing on Safari, it only overrides the browser search function if the original page-load didnāt include all the posts in the topic.
If Iām right, then perhaps that functionality could be extended to also stop overriding when all of the posts have been scrolled through, and are thus displaying on the page. You could file a request on meta.discourse.org to get that done. It would make sense.
Regardless, I think itās important to not default to the browser search when all of the pageās content isnāt going to be searched if the default browser search is used. I canāt tell you how many times Iāve been burned by that on all kinds of websites. Often you have to click to open section after section after section, click āmoreā and āmoreā and āmore,ā or scroll and scroll and scroll before you can click Command-F and have it actually search all the content on the page. And if you accidentally miss one of the sections on the page, then you think youāve confirmed that something isnāt present, when in reality itās still just hidden. And itās even worse if you didnāt even know that there was unloaded page content.
I do not see this behavior in Safari. I get the Safari search when I hit ā-F.
In Safari, I get the Discourse-native search when the topic has enough comments for them to not all be loaded from the beginning (e.g. the Apple pushing OS updates topic). This Command-F topic is not yet long enough to trigger the change.
Ah, yes. That is very annoying. I bet I can āfixā thatā¦
After doing some research, this appears to be something that has been brought up to the discourse devs several times, and they insist that they are right. They have made changes which, to my mind, have made the feature even more annoying since it adds a level of mystery to what will happen if you hit ā-F. If the thread has less than 20 messages, then the common is not intercepted, otherwise it is.
So, spin the wheel and see what happens, because no way will you know ahead of time what youāre going to get.
Short of having a plugin that intercepts the code and removes the objectionable part, it is impossible to disable and the developers refuse to consider having an option to turn it off. They have⦠reasons, which I am sure are sensible to them, but their attitude from what Iāve read is āUsers? Yeah, users are wrong and weāre going to do our thing regardless of how it messes up peopleās experience.ā
The first few times it happened to me it was irritating, but after that I realized how important it is. Perhaps you didnāt read my comment where I explained why itās user-unfriendly to do it any other way.
Even in this case, Discourseās behaviour makes sense, as it only keeps ~20 posts loaded. So even if youāve read through the whole thread, if itās a long one the earlier posts will no longer be searchable with the built-in search. In the case of short threads where all posts are loaded, Discourse doesnāt override cmd-F. If you read the thread Adam linked to, it explains how the feature works.
The summary is that Discourse only overrides cmd-F when itās necessary to ensure youāre searching the whole thread.
If you really donāt like this overriding of Command-F and you use Safari, thereās an extension that @tommy found that will stop it: