Bug 509541 - [find/replace] Incremental Search (Ctrl+J) reports "not found" when a wrapped search would be needed
Summary: [find/replace] Incremental Search (Ctrl+J) reports "not found" when a wrapped...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.7   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2016-12-20 12:34 EST by Martin Oberhuber CLA
Modified: 2020-02-07 08:17 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2016-12-20 12:34:24 EST
Incremental Find is a great way to quickly navigate to some text that I know exists in the current editor. It saves me typing.

But when I use Ctrl+J (incremental forward search) from the middle of a file, and the text to be found happens to be only BEFORE the current cursor position, Eclipse reports "not found" in the status bar. This is confusing, see also here:
http://stackoverflow.com/questions/12065089/make-eclipses-incremental-find-wrap-around-the-end-of-the-page

Expected behavior: Incremental find should automatically wrap, and not only when pressing Ctrl+J again. After all, I wanted to find a specific match - that's usually regardless of whether that match is before or after my current cursor position. 

Test case:
- Open any (Java) Source file with Copyright Header
- Put the cursor on line 20 or so
- Type Ctrl+J copyr
--> Eclipse shows "not found", but wrapping up is expected.
Comment 1 Dani Megert CLA 2016-12-20 13:15:04 EST
(In reply to Martin Oberhuber from comment #0)
> --> Eclipse shows "not found", but wrapping up is expected.

If we automatically wrap, the next bug will be that we don't tell the user that we wrap ;-).
Comment 2 Martin Oberhuber CLA 2016-12-20 13:20:40 EST
The statusbar says "wrapped: xxxx", and Eclipse beeps, when I manually wrap by pressing Ctrl+J again. Related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=41658 I had hoped that this indication would also be done when auto-wrapping.
Comment 3 Eclipse Genie CLA 2020-02-07 08:17:37 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.