Bug 355467 - Find from current page does not work for successive finds.
Summary: Find from current page does not work for successive finds.
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.20.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-17 05:18 UTC by dE
Modified: 2019-06-10 10:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dE 2015-11-17 05:18:33 UTC
If in the find tool bar options (ctrl+f), you've checked 'from current page', it's going to work only for the first time.

If you scroll up or down, and then press next, Okular is going to search for the next occurrence from the last match (instead of searching form the current page).

Reproducible: Always
Comment 1 Albert Astals Cid 2015-11-17 22:17:50 UTC
Yes, that's not a bug but the designed behavior, next is next, not a new search.
Comment 2 orionbelt2 2019-05-31 14:02:57 UTC
So how does one try a new search?

The scenario is the following:

1. I run a search with "from current page" enabled. Okular correctly finds the next match (in or after the current page).

2. I then move to another page in the document.

3. I now want to run a search from *that* new page down. Whether i have "from current page" checked or not, Okular continues searching from the last location it was in step 1.

So how do i do what i want in step 3?

Thanks.
Comment 3 Albert Astals Cid 2019-06-01 08:25:29 UTC
You just type the new word you want to search.

If you want to search the same word you were searching, you press Esc twice (first closes the search bar, second cancels the existing search) and then search again.
Comment 4 orionbelt2 2019-06-10 03:57:31 UTC
Thanks a lot for the answer. Indeed, the key is hitting Esc twice to cancel the current search.

Is this something obvious that i just happened to ignore or is it something that should be documented somewhere? I looked into the okular handbook and web site and i failed to find any mention that hitting Esc twice cancels the current search.

A more visible way to make it obvious might be to add a "cancel search" option somewhere (in the menu bar, where the shortcut would also be mentioned, or in the search bar at the bottom).

Hitting Esc once has an obvious and visible effect in the various contexts where it is applicable. But the double-Esc thing is not at all obvious, and i am now wondering whether i also miss other uses of it in different contexts.
Comment 5 Albert Astals Cid 2019-06-10 10:25:55 UTC
Hitting esc cancels the serach so the last highlighted result goes away, i agree this is "non obvious" if it's out of your view though
Comment 6 orionbelt2 2019-06-10 10:40:17 UTC
Right, and also hitting Esc a second time is not obvious either, unless you do it by accident.

Even if the previous search result is still in view and you see it disappear when (by accident) you hit Esc a second time, i think the notion that this cancels the previous search is not entirely obvious, even less so the notion that this resets the current page in case of a new search...