You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why doesn't it highlight the occurrence in titles? I would type "foo", it correctly finds all the URLs, and the titles as well, but it only highlights it in URLs. Is this a bug?
The text was updated successfully, but these errors were encountered:
This isn't exactly a bug (well, technically, it is), but let me try to explain.
completing-read feature of Emacs is never meant to be used "for searching things", but we use it for that anyway. And as it turns out, if you want to search, the data must be included in the collection. And as you may have noticed, the title is not part of the main string in every row (URL is). The title is an annotation. At some point, I even asked the question in /r/emacs and argued that there should be an idiomatic and "proper" way of searching for things that are not part of the main string.
So, if the title has to be part of the main string, but it isn't there, how does it work? It works because I tricked it; I appended the title to the URL but made it invisible (and the added annotation makes it looks nice). That forces it to apply search to both URL and Title, and it would work with orderless completions, etc., but sadly, it won't highlight the occurrences in titles. A minor inconvenience, nothing more.
Why doesn't it highlight the occurrence in titles? I would type "foo", it correctly finds all the URLs, and the titles as well, but it only highlights it in URLs. Is this a bug?
The text was updated successfully, but these errors were encountered: