Skip to content

fix(window): hide all blink windows when another completion menu is triggered #1852

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

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

soifou
Copy link
Collaborator

@soifou soifou commented Jun 4, 2025

If one or more blink windows (menu, documentation, or signature) are
visible and the user triggers a different completion menu (like
omni-complete, user-complete, ...), all blink windows are now
closed automatically.

This prevents the blink menu from staying open on top of the new menu,
making things less confusing for users.

Closes #1806


2025-06-04_17-10-43.mp4

Same logic used by nvim-cmp and seems reliable enough.

@soifou soifou force-pushed the fix/complete-changed branch from bd55bc0 to bc455c5 Compare June 4, 2025 15:00
@soifou soifou changed the title fix: hide all blink windows when another completion menu is triggered fix(window): hide all blink windows when another completion menu is triggered Jun 4, 2025
@Saghen
Copy link
Owner

Saghen commented Jun 9, 2025

Rather than hiding all the windows through the window lib, it may make more sense to handle this in the trigger and call trigger.hide(). We could then ignore all .show() calls if any of omni-complete, user-complete, ... are open. Wdyt?

@soifou soifou force-pushed the fix/complete-changed branch from bc455c5 to 11ae0f6 Compare June 9, 2025 15:10
@soifou
Copy link
Collaborator Author

soifou commented Jun 9, 2025

This makes total sense since all the show/hide stuff is handled there.

I pushed the changes as you suggested, and this feels now just right! Thanks for having pointed me in the right direction.

…riggered

If one or more blink windows (menu, documentation, or signature) are
visible and the user triggers a different completion menu (like
`omni-complete`, `user-complete`, ...), all blink windows are now
closed automatically.

This prevents the blink menu from staying open on top of the new menu,
making things less confusing for users.

Closes #1806
@soifou soifou force-pushed the fix/complete-changed branch from 11ae0f6 to 2d6bc82 Compare June 9, 2025 15:12
@Saghen Saghen merged commit e7dcfe4 into main Jun 9, 2025
6 checks passed
@Saghen
Copy link
Owner

Saghen commented Jun 9, 2025

Thanks!

@soifou soifou deleted the fix/complete-changed branch June 9, 2025 17:12
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.

Menu isn't closed when if user requests other completion
2 participants