GNOME Bugzilla – Bug 779105
Cannot highlight more than one search term
Last modified: 2019-03-08 21:51:56 UTC
The WebKit2 API has changed how find works, making it difficult to highlight more than one search term. Need to investigate how to convince it to do so, either using the new WK2 or by doing highlighting manually.
Nitpicking... If two or more search keywords are close to each other, both words are highlighted. The problem is when they are not close to each other.
This will probably require our own custom JS implementation, since neither the WebKitGTK API nor the DOM provides anything useful — Neither window.find() nor execCommand("findString") supports multiple string matching and neither are standardised, and the FindText API https://www.w3.org/TR/findtext/ is neither finalised nor implemented. As such this requires some substantial work and hence won't make 0.12.
Closing in favour of https://gitlab.gnome.org/GNOME/geary/issues/305