-
Notifications
You must be signed in to change notification settings - Fork 30.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
Explore a QuickPick-like experience close to what invoked it #238095
Comments
可不可以开通 GitHub Discussion 啊? |
Yes please! And please be anchored to a position in a webview. |
Notes from UX Sync:
Rough Plan:
|
This will provide a great UX boost to so many flows, where the command palette causes such a break in focus. It feels to me that not trying to invert anything for the "picker" case is the least jarring, as it would be consistent regardless of the direction it was opened, and scrolling would be normal. I could also see the input switching from top to bottom, which is nice for focus, but probably not great if the items are in the same order. Though for the "input" case, I feel like inverting the input with the message/validation works well. As for webviews, I would really want this to live outside the webview itself, so that it can escape the bounds, otherwise this wouldn't provide anything we couldn't implement ourselves today. And the only complexity I see to support the webview case is the "anchoring" and possibly focus handling to ensure the webview gets focus back on close. I faced some of this with an experiment I worked on a little while back to allow VS Code hovers to be anchored over a webview, but I didn't get too far in the exploration of an "anchor" and instead added a |
I guess even in the outside of webviews there are challenges for anchoring, e.g. triggering from a click on an action button -- editor toolbar, view titles, view items, etc. |
Scenarios:
All of these open Quick Picks that are aligned at the top... and we've gotten wishes that the quick pick could be rendered closer to these items.
Explorations
Explore simply moving the existing quick pick closer to what's invoking it
Hacked up in 88f4209 if you click in the Chat input and click the paper clip, the quick pick renders closer to it:
another example if your cursor was in the Search:
and another example if you use the branch picker:
There are a few things to iron out:
workbench
and quick pick is inplatform
Those are things that could be solved with some work... but I think the big problem is that........ it just doesn't look that great. I was really expecting it to look and feel nicer, but I don't think it does. I wish that the quick pick felt more attached to the thing that is opening it... like the attach context, or the Git status bar item.
That inspired the 2nd exploration.
Explore a new kind of widget
For the attach context and the status bar items, the wish is for something that really feels attached to that. Something like the label picker on GitHub:
but with a tail like a hover (like the Language Status Bar item):
It could look something like this (please forgive my bad Figma skills):
and in the branch picker:
Writing down a loose idea from notes:
I think we need more mockups... open questions:
The text was updated successfully, but these errors were encountered: