jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Do not highlight Boolean operators in search results

Open ryan-carpenter opened this issue 1 year ago • 0 comments

Terms entered in the search bar are highlighted in the entry editor, which is helpful for reviewing the results. Boolean operators are also highlighted as if they were matching keywords. This adds noise the results and can make it unclear that the operator was recognized as such (and not as a keyword). This is most confusing when the operator is the only highlighted word in the current view, which looks as if the match is a false positive (even though it is not).

Example search

title="effects" and title="drill"

Results include image

Only the target keywords should be highlighted in the results, not the Boolean operators and, or and not (and not). In this example "effects" and "drill" should be highlighted.

JabRef 5.15--2024-07-10--1eb3493 Linux 6.9.9-1-default amd64 Java 21.0.2 JavaFX 22.0.1+7

ryan-carpenter avatar Aug 06 '24 23:08 ryan-carpenter