This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7673 - "find" searches from the beginning of document by default
Summary: "find" searches from the beginning of document by default
Status: RESOLVED FIXED
Alias: None
Product: Amaya
Classification: Unclassified
Component: Editing (show other bugs)
Version: 11.2
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Vatton
QA Contact: Vatton
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-18 10:00 UTC by Angelo Borsotti
Modified: 2009-12-02 09:36 UTC (History)
5 users (show)

See Also:


Attachments

Description Angelo Borsotti 2009-09-18 10:00:03 UTC
Suppose you have the following document (lines are numbered
for convenience):

1. bla bla
2. foo
3. bla bla
4. foo

Then place the cursor at the beginning of line 3, and open the
find window clicking on its icon on the toolbar. Enter "foo" in the
"Search for" field, and click on "Confirm". It finds the "foo" on line
two.
Then place again the cursor at the beginning of line 3, open the
find window ("foo" is still present in the search field), and click
"Within selection" and "Confirm": a message "Not found" is displayed.
However, if then you click on "After selection" and "Confirm", then the
"foo" on line 4 is found.
I think that finding something after the cursor occurs quite frequently.
Requiring users to use the find tool twice ("Within selection" and then
"After selection") to get it is not much intuitive. "After selection" should
always start finding after the cursor.

The platform is Windows Vista.
Comment 1 Vatton 2009-12-02 09:36:04 UTC
(In reply to comment #0)
> Suppose you have the following document (lines are numbered
> for convenience):
> 
> 1. bla bla
> 2. foo
> 3. bla bla
> 4. foo
> 
> Then place the cursor at the beginning of line 3, and open the
> find window clicking on its icon on the toolbar. Enter "foo" in the
> "Search for" field, and click on "Confirm". It finds the "foo" on line
> two.

Okay we changed that behavior

> Then place again the cursor at the beginning of line 3, open the
> find window ("foo" is still present in the search field), and click
> "Within selection" and "Confirm": a message "Not found" is displayed.
> However, if then you click on "After selection" and "Confirm", then the
> "foo" on line 4 is found.

If the selection is just a caret that is normal.
You have to select the whole item with F2 or Esc to have a not empty selection.

> I think that finding something after the cursor occurs quite frequently.
> Requiring users to use the find tool twice ("Within selection" and then
> "After selection") to get it is not much intuitive. "After selection" should
> always start finding after the cursor.
> 
> The platform is Windows Vista.
>