Skip to content

feat: add shared counts and revise motion acceleration - #4

Merged
kibi2 merged 25 commits into
mainfrom
chore
Oct 8, 2026
Merged

kibi2 merged 25 commits into
mainfrom
chore

Conversation

@kibi2

@kibi2 kibi2 commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Summary

This PR updates motion acceleration and deceleration behavior and adds shared counts.

Changes

  • Add shared counts between paired motion keys (j/k, h/l, w/b)
  • Change deceleration to holding the opposite motion key
    • e.g. holding k while holding j reduces the motion amount
  • Prevent acceleration when an invalid repeat (ng_repeat) is detected
  • Limit consecutive tap acceleration to 4×; a third consecutive tap resets acceleration
  • Add CI tests
  • Add luacov for code coverage

Notes

The acceleration/deceleration behavior is now based on the direction of the held motion key, making the behavior more consistent with Vim's motion keys.

@kibi2
kibi2 force-pushed the chore branch 3 times, most recently from f7d7a18 to 78609fc Compare October 8, 2026 05:49
@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@kibi2
kibi2 merged commit d4ff8c3 into main Oct 8, 2026
4 checks passed
@kibi2
kibi2 deleted the chore branch October 8, 2026 06:59
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.

2 participants