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: Added hint_timeout option to hide hints after a delay #106

Closed
wants to merge 1 commit into from
Closed

feat: Added hint_timeout option to hide hints after a delay #106

wants to merge 1 commit into from

Conversation

Sawangg
Copy link

@Sawangg Sawangg commented Aug 7, 2024

@m4xshen This PR adds a hint_timeout option with a default value of 5000 to hide hints after a delay.
This addresses issue #82. This implementation resets the timeout back to its original value if a new hint comes in before the last timeout was executed.

Feel free to edit the default value if 5000 is not to your taste but it seems like a good middle ground in my tests.

@m4xshen
Copy link
Owner

m4xshen commented Aug 8, 2024

Hi @Sawangg,

Thanks for picking up this issue!

I tested it out and found that your implementation doesn't work with nvim-notify. Instead of clearing the last notification, it sends a new blank notification, as shown here:

Screenshot 2024-08-08 at 9 15 37 PM

The primary goal of #82 is to work with nvim-notify, as the UI-style notification is annoying if it stays too long. For native text notifications, a timeout mechanism isn't needed since it doesn't block anything.

Sorry for the unclear issue description. If you have any further questions, feel free to ask!

@m4xshen m4xshen linked an issue Aug 8, 2024 that may be closed by this pull request
@m4xshen m4xshen added the enhancement New feature or request label Aug 8, 2024
@Sawangg Sawangg closed this by deleting the head repository Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hint timeout
2 participants