-
Notifications
You must be signed in to change notification settings - Fork 49
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
Feature request: Discarding visual selection #148
Comments
Seems to be a pretty reasonable feature request. You are right, it is not possible to discard a selection for now. Actually, in my flow, I stage everything I want, and then I discard the rest of a hunk. But your request fits perfectly in vimagit grammar. If I may, this would made a perfect pull request: all the bricks are here to add this feature, you just have to put them together! If you don't want to, I will certainly implement it in the next few month. PS: thanks for your kind message! |
Thanks for your quick response. I'm far from an expert in vimscript, but I can sure give it a try. Just to make sure: One could not discard individual characters, but just all of the lines "touched" by the visual selection. Is that correct? And what key binding do you see fit for this visual mode command? |
Actually, it should almost work out of the box. My main concern is that visual selection is broken in I fix that in branch |
bug highlighted by issue #148 It shows that I must find another test framework than vader, which allows feedkeys
bug highlighted by issue #148 It shows that I must find another test framework than vader, which allows feedkeys
You can take a look to |
@jreybert I gave this a test with |
@kristijanhusak you are promoted to be the vimagit user of the month! As I stated in october, the dev branch does not work as is. Thanks for the feedback. This should be a simple issue. I forgot it because I let a chance to @remofritzsche to make a PR (no problem @remofritzsche , there was no obligation to do the PR ;) ). I will try to find some time to finish this feature. |
First of all, thanks a bunch for vimagit - this may finally be the perfect solution for me so I don't need any GUI tools anymore!
Just one little thing: Am I right that it currently isn't possible to discard the changes using a visual selection? This would be a tremendous help. Thanks for considering this.
The text was updated successfully, but these errors were encountered: