-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
vim: Add sneak motion #15572
vim: Add sneak motion #15572
Conversation
Implement support for the vim sneak motion from the vim-sneak plugin. The motion jumps forward or backward to any location specified by two characters. The Sneak & SneakBackward operators are bound to 'z' and 'Z' by default to avoid overwriting the 's' and 'S' default keybindings, similar to the way the original plugin uses 'z' with operators to avoid conflicts. Reference: https://github.com/justinmk/vim-sneak
We require contributors to sign our Contributor License Agreement, and we don't have @mrkajetanp on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
@cla-bot check |
The cla-bot has been summoned, and re-checked this pull request! |
Wowow, this is already looking amazing! Before I dive too deep into the code, some thoughts/comments:
|
Thanks for this! Closing this for now due to a lack of activity, but this is a very highly requested feature. if you want to pair with me on getting this over the line: https://calendly.com/conradirwin/pairing |
A (re)continuation of #21067. This takes the original implementation in #15572 and adds the test in #21067. Then, as requested in #21067 (comment), it documents how to map a keybinding instead of having a setting. Closes #13858 Release Notes: - Added support for the popular [vim_sneak](https://github.com/justinmk/vim-sneak) plugin. This is disabled by default and can be enabled by binding a key to the `Sneak` and `SneakBackward` operators. Reference: https://github.com/justinmk/vim-sneak --------- Co-authored-by: Kajetan Puchalski <[email protected]> Co-authored-by: Aidan Grant <[email protected]> Co-authored-by: Conrad Irwin <[email protected]>
Implement support for the vim sneak motion from the vim-sneak plugin. The motion jumps forward or backward to any location specified by two characters.
The Sneak & SneakBackward operators are bound to 'z' and 'Z' by default to avoid overwriting the 's' and 'S' default keybindings, similar to the way the original plugin uses 'z' with operators to avoid conflicts.
Reference:
https://github.com/justinmk/vim-sneak
Release Notes: