-
Notifications
You must be signed in to change notification settings - Fork 194
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
Find/Replace overlay should have an X for closing #1991
Comments
You can also close it by clicking Ctrl+F again (or twice if doesn't have the focus). |
@vogella I have been trying to think for the last two days about how I could implement this in the Overlay. I will try to come up with a good solution and maybe we iterate a few times |
That's actually something I found feels "buggy" it should not matter if the control has focus or not, it should simply listen to ESC + CTRL+F on the main editor and handle accordingly. |
@laeubi that is by design and really important to my use! |
I agree that pressing Escape when being in the editor should, in my opinion, also close the overlay. Maybe that would even render an additional close button obsolete, as it makes it easy and fast enough to close the overlay? |
I found it rather "surprising" and the first time I opend the new overlay that ways exactly my problem "how to close that thing?!?" because it now hangs over my code and I have no idea how to close it, e.g. I searched some text, found it, edit something in the document and then the search has no focus (what one can not really "see" in contrast to a dialog where the title-bar usually indicate this) and I needed a while to find out how to close. Performing a shortcut twice to close a dialog is something I never seen before.
A close button is the most obvious way and having one more icon don't seem to need more space also such button does not need any new functionality (just trigger exiting one) so I would find it useful anyways. |
I agree. A close button makes it obvious to new user how to close the overlay. |
Sounds like we all agree that a close button would be nice. I think it is fine to have other means of closing it but such a button would make it obviously for users. |
Yes, fully agree.
|
Personally I find it useful and like it that I can use the same short-cut again to close the overlay. |
At least on Firefox STRG+F only focus the search again, also the "old" dialog does not close when pressing STRG+F again but when I press ESC ... |
Thanks for sharing the different opinions on pressing CTRL+F when the overlay has focus! Then we need to find some consensus on this. I see the following reasons for having CTRL+F move focus to the search input field instead of closing the dialog:
Still my opinion is not that strong, so I appreciate further arguments for one option or the other. |
I agree with Heiko. Especially 1. is a very strong argument. |
The Dialog also receives focus when Ctrl+F is pressed instead of closing. I agree that it might be confusing that pressing Ctrl+F twice closes it again. I thought it would be sensible behavior but seeing that vscode and firefox don't close the interface on pressing Ctrl+F again, I am not so sure anymore. I'm open to removing that toggle behavior and relying on esc for closing the interface instead. |
I agree that pressing Ctrl+F should put the focus on the search text editor, that's all reasonable. But if the focus is already there I also find it convenient if the overlay would continue to close itself, just like it is doing it now. It's not a must have for me, but I find it nice to have. :) |
Usual behavior (in other tools) when pressing CTRL+F is that the complete text within the input field is selected, so it is kind of a shortcut for a "Select All" operation within the input field. |
@Wittmaxi could you add the closing X button to the find overlay? I think everyone agree that this would be useful (independent of the CTRL+F discussion) |
@vogella Heiko and I agreed to the following in ojr last Meeting
There are many "high priority" issues and many unmerged PRs, so I really need to prioritise. Breaking bugs come first, the search history came first. I will probably get around to building this feature next week, maybe during the eclipse gettogether. For now, this is my roadmap showing my understanding of priorities. If you need such a feature ASAP, the right place too hook the X-Button is probably as a new ToolItem in searchTools. You can use the other toolitems in the Overlay as reference, they use a Builder with a fluent library which makes addition really easy |
The find/replace overlay can currently only be closed via the shortcut CTRL+F when the overlay has input focus. This change adds a close button to the overlay for providing an easy and comprehensible way of closing the overlay. Contributes to eclipse-platform#1991
The find/replace overlay can currently only be closed via pressing Escape or using the shortcut CTRL+F when the overlay has input focus. This change adds a close button to the overlay for providing an easy and comprehensible way of closing the overlay. Contributes to eclipse-platform#1991
The find/replace overlay can currently only be closed via pressing Escape or using the shortcut CTRL+F when the overlay has input focus. This change adds a close button to the overlay for providing an easy and comprehensible way of closing the overlay. Contributes to eclipse-platform#1991
The find/replace overlay introduces a new close icon similar to the close icon used for the tab folder from https://bugs.eclipse.org/bugs/show_bug.cgi?id=575395 This pull request updates the notification close icon which still looks like the old tab icon before the change in https://bugs.eclipse.org/bugs/show_bug.cgi?id=575395 and does not fit anymore in the overall look and feel. A follow-up PR could also update the active folder but find a new "reddisch" color would require more testing on the different OS, while with the regular icon we can build on the testing of eclipse-platform#1991
The find/replace overlay introduces a new close icon similar to the close icon used for the tab folder from https://bugs.eclipse.org/bugs/show_bug.cgi?id=575395 This pull request updates the notification close icon which still looks like the old tab icon before the change in https://bugs.eclipse.org/bugs/show_bug.cgi?id=575395 and does not fit anymore in the overall look and feel. A follow-up PR could also update the active folder but find a new "reddisch" color would require more testing on the different OS, while with the regular icon we can build on the testing of eclipse-platform#1991 Fixes: eclipse-platform#2035
The find/replace overlay can currently only be closed via pressing Escape or using the shortcut CTRL+F when the overlay has input focus. This change adds a close button to the overlay for providing an easy and comprehensible way of closing the overlay. Contributes to eclipse-platform#1991
The find/replace overlay introduces a new close icon similar to the close icon used for the tab folder from https://bugs.eclipse.org/bugs/show_bug.cgi?id=575395 This pull request updates the notification close icon which still looks like the old tab icon before the change in https://bugs.eclipse.org/bugs/show_bug.cgi?id=575395 and does not fit anymore in the overall look and feel. A follow-up PR could also update the active folder but find a new "reddisch" color would require more testing on the different OS, while with the regular icon we can build on the testing of eclipse-platform#1991 Fixes: eclipse-platform#2035
The find/replace overlay can currently only be closed via pressing Escape or using the shortcut CTRL+F when the overlay has input focus. This change adds a close button to the overlay for providing an easy and comprehensible way of closing the overlay. Contributes to #1991
The find/replace overlay introduces a new close icon similar to the close icon used for the tab folder from https://bugs.eclipse.org/bugs/show_bug.cgi?id=575395 This pull request updates the notification close icon which still looks like the old tab icon before the change in https://bugs.eclipse.org/bugs/show_bug.cgi?id=575395 and does not fit anymore in the overall look and feel. A follow-up PR could also update the active folder but find a new "reddisch" color would require more testing on the different OS, while with the regular icon we can build on the testing of #1991 Fixes: #2035
I think we need an faster way to close the Find/Replace overlay. Current process seems to be:
1.) Move Cursor inside the Find Overlay
2.) Press ESC
VsCode has a button for this, which I think is very intuitive. I was searching for such a button before realizing that most likely I have to click into it and use the escape button to close it.
@Wittmaxi WDYT?
The text was updated successfully, but these errors were encountered: