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

Delete Right when user presses x #122

Merged
merged 1 commit into from
Jan 6, 2016

Conversation

sharpoverride
Copy link
Contributor

Small change to invoke deleteRight command when you press x.

BTW, are there any tests around the normal mode keys handling. I admit I'm still looking around and trying to add the small things that I feel productive with.

@jpoon
Copy link
Member

jpoon commented Jan 5, 2016

All are tests are here: https://github.com/VSCodeVim/Vim/tree/master/test. We currently don't have any that test normal mode commands as we are in the process of refactoring it all to better handle commands.

@@ -26,7 +26,7 @@ export default class NormalMode extends Mode {
"dd" : () => { return vscode.commands.executeCommand("editor.action.deleteLines"); },
"dw" : () => { return vscode.commands.executeCommand("deleteWordRight"); },
"db" : () => { return vscode.commands.executeCommand("deleteWordLeft"); },
// "x" : () => { this.CommandDelete(1); }
"x" : () => { return vscode.commands.executeCommand("deleteRight"); },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tbh, this will likely get refactored in the future to better handle things like 4x hence the CommandDelete implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I expect that to happen, but I need to have small things like x, or cw available in the meantime. Also I'll probably try to add some dumb visual selection. I don't use all of what vim offers, mostly stuff I got used to.

I can deploy manually for myself if you think it's better to wait for the proper handling implementation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or...you can help with the proper handling implementation ;)

jpoon added a commit that referenced this pull request Jan 6, 2016
@jpoon jpoon merged commit f7501cc into VSCodeVim:master Jan 6, 2016
@sharpoverride
Copy link
Contributor Author

Ok, next time I'll make sure I don't change the version. thx

As per your comment with multi-motion I need to find some time to think about how to go about it. Or is there a document that has some details about the approach you or somebody else expects to have?

This pull request was closed.
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