Bug 377487

Summary: Find and highlight all instances of a searched word
Product: [Applications] okular Reporter: kritinsai1
Component: generalAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: wishlist CC: acrylint, alibeg91, aptrug, aros, azrdev, bingelt, bugseforuns, cappellorosso, cezanne, dev-kde, f.thaler, i.garca9999, ioewe-mail, kaue.sena, malenko, mjulier, nate, nilskemail+kde, nortexoid, oliver.sander, postix, simonandric5, vz33
Priority: HI Keywords: usability
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Search panel in Gnome Evince (similar to "Advanced search" in Adobe Acrobat)
Highlight all results in firefox

Description kritinsai1 2017-03-11 10:13:24 UTC
When using ctrl-f to search, could you show a list of all matching lines along with some context, with an option to click and go to that page?

This is quite useful when figure numbers are referred in a book at multiple places and finding the figure requires navigating through all previous matches.
Comment 1 Oliver Sander 2017-03-11 10:24:49 UTC
Have you tried the search field on top of the thumbnails view?  That one does filter out all pages with a match.
Comment 2 kritinsai1 2017-03-11 10:29:30 UTC
I didn't know of that, it is quite similar to what I wanted, thank you.
Comment 3 Miguel 2017-03-11 12:38:49 UTC
I didn't know this feature either, but it is not sufficient.
Look at the "search" panel in Evince (Gnome), I am adding a screenshot (sorry, in French). It is similar similar (but better, in my opinion) to the "advanced search" tool in Adobe Acrobat (Reader).
Comment 4 Miguel 2017-03-11 12:39:48 UTC
Created attachment 104506 [details]
Search panel in Gnome Evince (similar to "Advanced search" in Adobe Acrobat)
Comment 5 azrdev 2017-10-06 13:05:12 UTC
thx for pointing out the workaround. This seems to be already in the tracker: <https://bugs.kde.org/show_bug.cgi?id=377487>
Comment 6 Christoph Feck 2018-02-14 20:33:48 UTC
Is bug 238123 a duplicate?
Comment 7 Nate Graham 2018-02-14 20:34:46 UTC
Looks like it to me.
Comment 8 Nate Graham 2018-09-04 17:06:46 UTC
*** Bug 398176 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2018-09-04 17:07:29 UTC
*** Bug 238123 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2018-11-29 16:55:58 UTC
*** Bug 401530 has been marked as a duplicate of this bug. ***
Comment 11 Michael D 2019-06-27 08:30:23 UTC
(In reply to Oliver Sander from comment #1)
> Have you tried the search field on top of the thumbnails view?  That one
> does filter out all pages with a match.

This works nicely but has a major problem: discoverability.
Comment 12 David Hurka 2020-06-12 20:44:19 UTC
*** Bug 422893 has been marked as a duplicate of this bug. ***
Comment 13 Nate Graham 2020-07-02 00:02:43 UTC
*** Bug 423748 has been marked as a duplicate of this bug. ***
Comment 14 Dietrich Mueller 2020-07-03 10:18:26 UTC
*** This bug has been confirmed by popular vote. ***
Comment 15 Nate Graham 2020-10-25 17:28:40 UTC
*** Bug 428222 has been marked as a duplicate of this bug. ***
Comment 16 Clarc 2020-10-25 17:42:21 UTC
(In reply to Michael D from comment #11)
> (In reply to Oliver Sander from comment #1)
> > Have you tried the search field on top of the thumbnails view?  That one
> > does filter out all pages with a match.
> 
> This works nicely but has a major problem: discoverability.

Why?
1. I would suggest enabling it by default, it's a very common (and very useful) feature in pdf-readers anyways.
2. Even if we don't auto-enable, there's this nice little "Options"-thing in the bottom right corner of the screen. In my opinion, it makes perfect sense to put it there. It's where I first searched for it. (after finding out it wasn't enabled by default)
Comment 17 postix 2021-11-24 14:04:31 UTC
*** Bug 326087 has been marked as a duplicate of this bug. ***
Comment 18 postix 2021-11-24 14:04:45 UTC
*** Bug 122599 has been marked as a duplicate of this bug. ***
Comment 19 postix 2021-11-24 14:05:17 UTC
*** Bug 188164 has been marked as a duplicate of this bug. ***
Comment 20 vz33 2023-02-15 01:06:00 UTC
I like this function of list all sentences nearby when search a keyword on the sidebar, which is easy to read on the sidebar, instead of checking per page when finding a keyword. This is different from the find function in Thumbnails. Thank you.
Comment 21 Alibeg 2023-06-07 17:44:37 UTC
Maybe I am commenting on a wrong bug but this bug is the one I got when searching for "make okular highlight all search results". It would be nice to be able to see all instances of the found words on the screen at the same time, just like firefox does it when it has multiple hits near one another. I expect browser search to be very common place for people to search for words in text and that behavior is something I am very used to. Also, as a developer, I have that feature in vi/emacs/other text editors.

Options in the lower right corner seems like a perfect spot to enable this behavior. See attachment for the firefox behavior.
Comment 22 Alibeg 2023-06-07 17:45:29 UTC
Created attachment 159520 [details]
Highlight all results in firefox