-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Implement ; and , #674
Implement ; and , #674
Conversation
First of all, thank youuu for implementing this! This is a big one that a lot of people want, and I'm super excited to get it in VSCodeVim! I have some suggestions for improvement. Let me know what you think.
Now you don't have to duplicate the keypress assignment and all the information about reversing is clustered together. |
@johnfn As always great feedback 👍 |
Last suggestion: instead of Then after we execute movements, check if that flag is set on the movement we just ran and if so then run Kind of hard to explain exactly why I think this is better but I like a more declarative approach of specifying important characteristics of actions as properties on the class rather than in the body of the function (where it's harder to find). I think it improves readability. |
@johnfn No wonder that this project has a readable and clean codebase ;) |
:) Can you actually make it a property on the class directly, sort of like right under
you have
? |
@johnfn repeatableWIthSemicolonOrComma should only be set to true if the action is successfully performed and there is no operator like "dfa" |
@johnfn Based on our discussion in slack channel PR updated. |
Last thing, I promise! (Sorry for the delay!) Can you condense it down to one line in the 4 cases where it appears?
Then we should legitimately be good to go here. |
@johnfn Done 😄 |
I'm ready to merge this, I just need it to be up to date with master. |
@johnfn Done |
Related Issue #410
@rebornix @johnfn please let me know if you want me to change something in this PR.