-
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
Mimic fugitive default mappings #101
Comments
@khalidchawtany @yevhen-m could you please give a try to branch |
I wouldn't change Also, mapping over
If you could find a way to make those mappings only work outside the commit message region (maybe with a try/except block, though that's really hacky), I'm in favor. The other mappings are fine. |
Absolutely agree, @alok. It's a bad idea to change native mappings to something else. I don't like that |
@justinmk remarks about actual mapping (which are almost all caps mappings) are close to fugitive mappings, but could be the same (which would ease the usage of vimagit for fugitive users). Also, use non caps mappings for usual action like staging frees a finger :) There is a trade off to find. vimagit is a little bit more than a usual vim plugin, it is a git UI embedded in vim. Then, it needs to use a lot of "easy to type" single key mappings to perform git actions efficiently. @alok good point for the "out of commit section" idea. I will look how ugly it could be. Another solution would be to open a new window to write the commit message, but I like the idea to stay in the same window. @yevhen-m these mappings are applied in the vimagit buffer only. You seem to dislike caps mappings too with |
It is 1:00 am. I would be more than happy to try them tomorrow :) |
No no no, I want an anwser now! Get up!! 😄 Have a nice night, and thanks for the upcoming review. |
Ha ha. I was long gone to 😴 Although sometimes I use the previous mappings accidentally, I would definitely would like to have the new ones 👍 @jreybert I am not able to stage visually selected lines I get the following:
|
Crap. Could you please try on branch next and check if there is the same behavior? Whatever the result, could you open an issue, precising the branch, your [n]vim version, your git version and a step by step way to reproduce this bug. Thanks for your review! |
Actually, use small case The only change made in 488b619 is to map |
@justinmk input:
The text was updated successfully, but these errors were encountered: