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: optional timeout on pattern mode #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ArijanJ
Copy link

@ArijanJ ArijanJ commented Apr 11, 2024

I really liked Emacs' avy-goto-char-timer, and this seemed like the best project to add this feature to in the Neovim space.

Basically, it's the regular pattern search, but with an automatic enter press after a certain time of no typing. Here's a little demo:

timeout1.mp4

I had to change the getcharstr call to always return something each cycle instead of wait for a key to be pressed, which meant a few more conditionals, but I think it should be fine.

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.

None yet

1 participant