Bug 479809 - Use current page when click Next in a ongoing search rather than previous search state
Summary: Use current page when click Next in a ongoing search rather than previous sea...
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 24.01.90
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-14 16:18 UTC by Alexis Murzeau
Modified: 2024-01-24 23:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
okular search click next after changing current page (1.64 MB, video/mp4)
2024-01-14 16:18 UTC, Alexis Murzeau
Details

Note You need to log in before you can comment on or make changes to this bug.
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.