Skip to content

Add the 'Search all Sketch Tabs" checkbox to the Find dialog #228

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

Closed
esp32croft opened this issue Mar 15, 2021 · 6 comments
Closed

Add the 'Search all Sketch Tabs" checkbox to the Find dialog #228

esp32croft opened this issue Mar 15, 2021 · 6 comments
Labels
conclusion: declined Will not be worked on topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@esp32croft
Copy link

The old IDE allowed you to search across all tabs of a sketch (and replace). This useful checkbox option has been lost in v2 of the IDE so you have to search each tab in turn.

@esp32croft esp32croft added the type: enhancement Proposed improvement label Mar 15, 2021
@kittaakos
Copy link
Contributor

Thanks for reporting it, @esp32croft.

We added the Search view to the IDE: #202. The new view supports find, replace, exclude/include globs, and compare editor if you want to double-check your changes before replacing the content. It works on all tabs.

You can try it out from the nightly builds if you want to: https://github.com/arduino/arduino-ide#nightly-builds.
We would love to hear your feedback. Thanks!

@esp32croft
Copy link
Author

Hi @kittaakos,
I've just tried the nightly build but didn't find a way of searching all the tabs for the selected text. The search still only finds matches in the selected tab. I've included a screenshot which shows what I'm getting;
Screenshot 2021-03-16 at 21 54 47
I was expecting an option to search across all tabs from this dialog. I'm wondering if there is a setting somewhere that I've not enabled.

@ubidefeo
Copy link

@esp32croft
you are still using the "find" command, not the search feature.
"Find" searches in the current tab, the "search" feature is on the left, in the sidebar

@kittaakos
Copy link
Contributor

kittaakos commented Mar 17, 2021

The search still only finds matches in the selected tab. I've included a screenshot which shows what I'm getting;

You're very close, @esp32croft. If you want to search in all tabs, you have to use the new Search view.

Screen Shot 2021-03-17 at 08 21 53

See the screencast:

screencast 2021-03-17 08-19-19

@esp32croft
Copy link
Author

Thanks @kittaakos , @ubidefeo ,
I didn't spot it was a NEW search feature rather than an extension to Find as previous. I blame muscle memory and should RTFM.
Would be nice if the Search could pick up the highlighted text in the current tab to pre-fill the Search, as it does for Find.

@ubidefeo
Copy link

hi @esp32croft
no worries, new features are often not immediately noticeable :)

Would be nice if the Search could pick up the highlighted text in the current tab to pre-fill the Search, as it does for Find.

the editor find is its own component part of the Monaco editor.
I guess for this kind of stuff you can build up some muscle memory for copy paste 😀

We won't implement this, since the search facility is a "search within workspace" and its functionalities go beyond searching for text. Pre-filling it would require moving text from one context to another.
We'd like to save development time for more pressing issues

thank you for your contribution 🙏🏼

@per1234 per1234 added conclusion: declined Will not be worked on topic: code Related to content of the project itself labels Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: declined Will not be worked on topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

4 participants