-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Editing a hunk with git add -i is weird #4112
Comments
Could you give some reproduction steps? I mean, not how to have changes on the git repo, but what you are doing then. On my side |
I'm not sure what to describe, sorry. I added a file using My |
Ok, a wrong configuration on my side, sorry. Yes it's not usable as it is. It's defaulting to @justbur It's weird because it's evilified, but there is no |
The short answer is The issue is that you are in evilified state, which is not a proper editing state and is also difficult to get out of. I'm not sure what the right answer is here. Here are two possibilities
|
@syl20bnr ☝️ |
My guess is normal state since the purpose of editing hunks is that you edit them, not just changing '+' and '-' Otherwise git interactive add would actually take care of that part (I mean, it's the one git command I know of that doesn't just dump you into the editor). FWIW, I think the evilified state for rebase -i stinks on ice. I should actually look up the way to turn that off... |
@nugend are you on master or develop? (with-eval-after-load 'diff-mode
(push 'diff-mode evil-emacs-state-modes)
(setq evil-evilified-state-modes (delq 'diff-mode evil-evilified-state-modes)))
(with-eval-after-load 'git-rebase-mode
(push 'git-rebase-mode evil-emacs-state-modes)
(setq evil-evilified-state-modes (delq 'git-rebase-mode evil-evilified-state-modes))) |
☝️ in |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
No standard insert mode seems to be supported, so removing a '-' line involves cutting and pasting a space. Normal mode doesn't work correctly so normal motion keys can't be used. No undo, etcetera.
Pretty weird in general.
The text was updated successfully, but these errors were encountered: