Skip to content

"Use Selection for Find" doesn't fill Find field on first use #1002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
per1234 opened this issue May 23, 2022 · 0 comments
Open
3 tasks done

"Use Selection for Find" doesn't fill Find field on first use #1002

per1234 opened this issue May 23, 2022 · 0 comments
Assignees
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented May 23, 2022

Describe the problem

The IDE's Edit menu contains a Use Selection for Find item.

🐛 The first time this is used after opening an IDE window, the "Find" field is not filled with the selected text.

To reproduce

  1. Select File > New from the Arduino IDE menus.
  2. Select some text.
  3. Select Edit > Use Selection for Find from the Arduino IDE menus.
    🐛 The text is not pre-filled in the "Find" field.
  4. In the "Find" UI, click the X icon.
  5. Select some other text.
  6. Select Edit > Use Selection for Find from the Arduino IDE menus.
    🙂 The text is pre-filled in the "Find" field.

Expected behavior

"Find" field is always filled with the selected text after selecting Edit > Use Selection for Find.

Arduino IDE version

Original report

2.0.0-rc6-snapshot-b407d0a

Last verified with

9a6a457

Operating system

Windows, Ubuntu

Operating system version

  • Windows 10
  • Ubuntu 20.04

Additional context

I recommend evaluating whether "Use Selection for Find" has any value. If not, it would be better to just remove it rather than spending time on getting it working correctly. Its functionality appears to be identical to Edit > Find Next, except that Find Next works correctly.

I don't see such a thing in the related applications (e.g., Arduino IDE 1.x, Theia Blueprint, VS Code). The small number of search results I get indicate maybe it is used in some macOS applications?

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants