-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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 Widget UI enhancement #26498
Comments
Option 5 - Have it docked at the bottom of the editor, similar to the way the "Problems", "Output", "Debug Console", and "Terminal" panels do. Then it doesn't need to be resized or moved. Pretty please. :) |
@tjgupta I'm working on it :) |
Hey @rebornix looking at this I believe you are facing some of the issue we are already facing with the debug toolbar, captured here #2513 Just some thoughts:
My point is we should not introduce a new ux concept if we already have some solutions that are solving this. |
Just a random idea: what if we actually allow to dock the find widget to the top or bottom of the editor (fixed) and everything else in the editor is pushed away from that? I am not 100% convinced about a find widget that moves dynamically. As an example of what I am talking about, see ST for example: |
We had quite a bit of discussion in two of our meetings recently. Here are some of the thoughts captured there:
|
@isidorn @bpasero thanks for your feedback. At the very beginning I don't want to dock the Find Widget as we already have Search Viewlet, so I came up with the four options I demonstrated above. Isi:
Ben:
Thanks @Tyriar for your summary, it represents most of our ideas and feedback. In addition to that
|
@rebornix I was not suggesting to make this the default location but having a grip-button to move the find widget around seems like a good thing to explore. I would like to selfhost on the find widget being in other locations to provide further feedback 👍 |
I would also like to self host on this to provide more feedback. The current find widget solution I like because it is similar to the chrome experience which every user on the planet is familar with |
Thank you for all the detailed feedback. While implementing the docking solution, we found we can actually split this two issues completely. For the issue of covering search result, we can allow users to scroll beyond the first line by the height of Find Widget. It doesn't change Find Widget at all, you can only scroll beyond first line only when the Find Widget is visible so it won't cover anything. |
Looks good. But when and how do you trigger this scroll beyond first line? |
@isidorn when Find widget is opened, I add a view zone before the first line and its height is the same as the find widget. Besides, I adjust the scrollTop of the editor then you don't see any shifting when the view zone is added. Since the whitespace is already there, you can scroll to it. |
@rebornix if I understand correctly that means that I will always be able to scroll beyond first line if the find widget is visible? I believe we should only allow that if we detect that find widget is covering some text. |
@isidorn yes that's my initial plan but I received +1 on being able to scroll beyond first line. Let's see users' feedback on it and decide if we want to narrow it down. |
@rebornix if the scrolling beyond the top only happens when it needs to, I think this is the way to go personally. Potentially combined with the textbox expanding vertically when needed. I'd like to try it out as well though 😄 |
@rebornix would it be possible to only allow scrolling out of the bounds if there is text under the find widget? Just got this which feels a bit awkward: |
@jamiedawsonyoung I made two changes to the Find Widget for this work item.
As we still have half a week before testing, let's see users' feedback on this two changes. Right now I can see @Tyriar is not happy with scrolling as above. |
@rebornix I like it, it might be better if we only added the extra space when absolutely necessary though. |
@rebornix I just played with the find wiget a bit, here's my feedback:
|
@rebornix I just played with the find wiget a bit, here's my feedback:
Good work overall! |
Close this first first and I'll create new issue for further improvement in next iteration. |
This is how all improvements should be pitched. Great argument. Hope UX designers will never see it, or the world will be doomed to eternal bikeshedding in sake of marketing. Sorry for necroing, just couldn't resist. |
Ref Find Widget issues
We have a bunch of issues talking about the size or position of Find Widget as it sometimes gets in the way. The root cause is that our single line input box can't handle long text sometimes however the find widget itself sometimes covers the result or text (of course as it's absolute positioned Overlay). There are three ways to mitigate this issue
Resize
The major problem is users find the input box is not wide enough to see all typed in query keywords. We can have two way to mitigate this issue.
1. Horizontal resize
Allow users to resize the find widget horizontally (the same way as Visual Studio). The drawback is editor width is your limit.
2. Use textarea when the content is long
Instead of a single line input box, we use textarea to support long text and multi line content (this requires other work though #15727)
Re-Position
Right now the Find Widget is an absolute positioned overlay so it sometimes covers the search result. We have several different solutions to solve or mitigate this problem as below
1. Move Find Widget horizontally when it's covering the search result
This is the way how Chrome handles this issue but it's not a perfect solution as when the editor width is small or not large enough, it still covers the result.
2. Move Find Widget both horizontally and vertically
This is suggested by @Tyriar, moving the find widget downwards when the window is not wide enough, especially when we split the window
The text was updated successfully, but these errors were encountered: