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

feat(keybindings): Add keybindings for the hover widget #1694

Merged

Conversation

xiyaowong
Copy link
Collaborator

@xiyaowong xiyaowong commented Dec 9, 2023

  • h/j/k/l
  • gg/G
  • C-f/C-b
  • When hover is invisible, K is sent to nvim(show hover); when hover is visible, press K again to focus the hover widget.

Resolve #1681

@xiyaowong xiyaowong force-pushed the feat/keybindings-for-hover-widget branch from 8b6754b to 33f381a Compare December 9, 2023 16:40
You can add this to your keybindings.json: When hover is invisible, K is sent to nvim(show hover); when hover is
visible, press K again to focus the hover widget.

```json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just use this as default?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, it may not be needed, but we want to provide as complete and intuitive defaults as possible. If this is a natural and logical extension of the VSCode interface, manual configuration shouldn't be needed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no problem with it, most users should agree with this binding.

@xiyaowong
Copy link
Collaborator Author

xiyaowong commented Dec 9, 2023

I also tend to make best practices the default, at least this eases my own configuration :)
cc @ni554n

@xiyaowong xiyaowong force-pushed the feat/keybindings-for-hover-widget branch from 4259ab5 to 1f9eef2 Compare December 9, 2023 17:16
@xiyaowong xiyaowong merged commit 68f0df8 into vscode-neovim:master Dec 9, 2023
8 checks passed
@xiyaowong xiyaowong deleted the feat/keybindings-for-hover-widget branch December 9, 2023 17:17

```json
{
"command": "editor.action.showHover",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably don't need to show this

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

Successfully merging this pull request may close these issues.

feature: hjkl motion in the hover widget
2 participants