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

Blink cursor after leap #258

Open
yashamon opened this issue Nov 28, 2024 · 1 comment
Open

Blink cursor after leap #258

yashamon opened this issue Nov 28, 2024 · 1 comment

Comments

@yashamon
Copy link

How can I set up my cursor to blink after leaping for a few seconds?

@ggandor
Copy link
Owner

ggandor commented Dec 6, 2024

I'm interested in this too, if someone has a complete solution, feel free to share the snippet.

Currently, I think you need to do something like:

  • Register the cursor position on LeapEnter.
  • Create a function (blink) that sets guicursor to achieve blinking effect, and then restores it after a while (defer_fn(restore_guicursor, timeout)...)
  • Trigger blink both on LeapSelectPre and on LeapLeave, but only if the cursor has moved. (On LeapSelectPre, you need to register the position again after an autojump.)

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

No branches or pull requests

2 participants