Skip to content

Option to show tooltips only when modifier is held #410

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

Closed
eugenesvk opened this issue Mar 25, 2025 · 1 comment
Closed

Option to show tooltips only when modifier is held #410

eugenesvk opened this issue Mar 25, 2025 · 1 comment
Labels

Comments

@eugenesvk
Copy link

I find settings.tooltip by default to be more annoying than useful when editing a config as it interferes with regular mouse navigation, so I disable it.
However, sometimes it's very welcome indeed! Is there a way to configure it to only show if I hover with e.g. Shift key pressed?

@FichteFoll
Copy link
Member

Unfortunately, it is not possible within the ST API to request the currently held modifier key for on_hover hooks or on demand. Such functionality generally exists (see docs, but only for command invocations triggered by a mouse interaction (defined in a .sublime-mousemap file), input handlers and quick panels.

I could try to interact with the respective platform's API to determine whether a modified key is currently held, but this is not something I am willing to implement.

@FichteFoll FichteFoll closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants