Skip to content
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

Allow QuickInput UIs to display near to the mouse-click that invoked them #237629

Open
gjsjohnmurray opened this issue Jan 10, 2025 · 0 comments
Open
Assignees

Comments

@gjsjohnmurray
Copy link
Contributor

#237534 means users can drag QuickInput to a position other than top-centre. The new position is then used for all subsequent QuickInputs.

I would like this feature to be extended so an extension displaying a QuickInput can signal that it should be displayed close to the coordinates of the user interaction that triggered it.

For instance the Git extension adds a StatusBarItem displaying the name of the current branch. Clicking on this is equivalent to invoking Git: Checkout to... from Command Palette (itself a QuickInput). When invoked from Command Palette it makes sense for the list of branches to appear in the same position as CP. But when invoked by clicking in the lower left corner of the window (i.e. the StatusBarItem) I think it would be better to display the subsequent QuickInput in that region of the screen.

Simulated by dragging the QuickInput after it appeared:

Image

pinging @TylerLeonhardt @lszomoru

@gjsjohnmurray gjsjohnmurray changed the title Allow QuickInput UIs to display close to the mouse-click that invoked them Allow QuickInput UIs to display near to the mouse-click that invoked them Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants