Bug 479809

Summary: Use current page when click Next in a ongoing search rather than previous search state
Product: [Applications] okular Reporter: Alexis Murzeau <amubtdx>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aacid
Priority: NOR    
Version: 24.01.90   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: okular search click next after changing current page

Description Alexis Murzeau 2024-01-14 16:18:43 UTC
Created attachment 164901 [details]
okular search click next after changing current page

SUMMARY

When searching a text within a document, I use CTRL + F and then click next until I find what I need.
But between 2 press of the Next button, if I change the page to skip known unrelated text I don't want, pressing Next again will go back to the previous state and won't continue searching from the new current page.

See video in attachment.


STEPS TO REPRODUCE
1. Open a PDF
2. Search a common word like "the"
3. Click several time "Next". This will find occurrence in, for example, page A
4. Scroll to skip multiple pages to page B
5. Click "Next" again

OBSERVED RESULT

After clicking "Next", the search continue finding matches from page A instead of from page B

EXPECTED RESULT

I expect the search to continue finding occurrence from page B instead of page A.

At least SumatraPDF and Firefox integrated PDF.js viewer implement search that way.

Maybe there is a way to workaround that ?
Currently I do Escape to cancel the search and then Ctrl + F and write the text to search again to start from the current page.


SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.6.9-amd64 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-3230M CPU @ 2.60GHz
Memory: 7.6 Gio of RAM
Graphics Processor: Mesa Intel® HD Graphics 4000
Manufacturer: Sony Corporation
Product Name: SVE1513Q1EB
System Version: C10GMJY7

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2024-01-24 23:30:50 UTC
This is on purpose, you can press Esc to cancel your previous search.