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
Focus peek window on creation #23001
Comments
Fiar request. The reasoning for focusing the tree of the left that you might wanna quickly skim through all references/definitions/etc to get fast overview. That's also the reason for changing the peek editor when the focus changes in the list. We could add a command that allows to toggle between the selected reference/def and the peek view and then remember where you have been last |
Ah, I understand. Speaking to my own use case, I use peek definition at least 98% of the time that I use the peek window, so at least 98% of the time there's only one file in the tree, and highlighting the tree doesn't make much sense. (I think it's a bit of a UX problem with the "peek all references" - it feels a little too much information in too constrained a space, so I normally do a global search instead - but that's an alternate request.) Your toggle command sounds great to me. I would also love if there was a keyboard shortcut to focus back on the original text document. |
maybe the focus should be on the peek editor directly if there is only one entry in the list, that would be very helpful. |
Is there any progress being made on this? |
Not entirely sure whether it's appropriate to add this here, but I'd also suggest two other things for the peek window that're in the same vein:
|
Any push on this? this is a must have. I seriously don't know how people have gone without this. |
@nicksettoon This is an open source project, this issue is marked as 'help wanted', so how about you? |
I'd say a command to move focus between them and then a setting to define is focused by default is the better solution. That makes the behaviour predictable, e.g I often press Enter when having just one reference I wouldn't want a new line then |
fyi - this is the place (and sample) for adding commands that use the peek view widget:
|
Besides, we still need a setting to define which component will receive focus by default when Peek Window is shown. |
@jrieken Sorry. I'm so far away from having time to learn how to contribute. I'd like to, but I'm still in college working on several other things at the moment. Also, wouldn't even know where to start learning how to build vscode extensions and stuff. |
This comment has been minimized.
This comment has been minimized.
fyi - I have change the setting to: |
I love the peek window. It's pretty much the best thing ever.
I would love it ever so slightly more if VSCode would auto-focus it and insert the cursor where it belongs. e.g. if I clicked "peek definition", the cursor should be on the definition of what I peeked.
This idea seems so obvious I can't believe it's not part of the default implementation, but I know you guys have your reasons for doing things. 😄
If there is such a reason, could this at least be made a setting?
Thanks guys! ❤️
The text was updated successfully, but these errors were encountered: