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

Add a script editor keyboard shortcut to show the documentation tooltip for the word the caret is on #11365

Open
Calinou opened this issue Dec 16, 2024 · 0 comments

Comments

@Calinou
Copy link
Member

Calinou commented Dec 16, 2024

Describe the project you are working on

The Godot editor 🙂

Describe the problem or limitation you are having in your project

New documentation tooltips were recently added, but you need to use your mouse to be able to see them. If you're only using the keyboard, there is no way to make them appear.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Add a script editor keyboard shortcut to show the documentation tooltip for the word the caret is on.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

It would work as follows (example from VS Code):

vscode_ctrl_k_ctrl_i.mp4

At the end of the video, I press Ctrl + K then Ctrl + I to make the tooltip appear without having to touch the mouse.

In Godot, we don't use leader keys (Ctrl + K) like VS Code, so the shortcut would have to be different. (I'd also prefer this to be a single key combination for convenience anyway.)

I don't have any ideas as for the default shortcut should be. Shift + F1 is currently free, but it's hard to be done with one hand (unlike Alt + F1 which is used for Contextual Help right now). Suggestions are welcome 🙂

If this enhancement will not be used often, can it be worked around with a few lines of script?

No.

Is there a reason why this should be core and not an add-on in the asset library?

This is about improving the script editor usability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant