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

How exactly does replay work? #18

Open
digitalmaster opened this issue Sep 29, 2024 · 3 comments
Open

How exactly does replay work? #18

digitalmaster opened this issue Sep 29, 2024 · 3 comments

Comments

@digitalmaster
Copy link

I'm curious how exactly does replayRecord work? How does it decide what gets recorded?

I'm asking because whenever I try to use it does really weird things so I just never use it.

Happy to update docs once I understand it. 🙏🏽

@DCsunset
Copy link
Owner

DCsunset commented Oct 1, 2024

For complex command, there is an option called record that can record the key sequence to a register. replayRecord will repeat the key sequence stored in a register.

@digitalmaster
Copy link
Author

I'm still pretty lost here 🙈

Ok so let's say I trigger the command dw. For me, this deletes up to start of next word. My goal is to be able to then press . to delete the next word.

dw executes the following commands: ['cursorWordEndRightSelect', 'deleteRight'].

If you have a moment could you take a look at my config? My guess is i'm missing something obvious.

@DCsunset
Copy link
Owner

Your config is a bit too long to look into. You can create a simple config that only has the commands, which is easier for us to understand. You can try reading the preset config to understand it better.

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