In evil-collection-diff-mode.el, the d key is bound to diff-hunk-kill. It conflicts with the core evil-mode delete operator. When editing a diff-mode buffer, a user expecting to delete a character, word, or selection by pressing d instead triggers a hunk removal. This is counter-intuitive for users who treat diff-mode as an editable buffer.
Steps to Reproduce
- Open a file or buffer in
diff-mode.
- Ensure
evil-collection-diff-mode is loaded.
- Select text.
- Press
d.
Expected Result
The evil-delete command should execute, allowing the user to delete specific text within the buffer.
Actual Result
The entire hunk is removed via diff-hunk-kill.
Suggested Fix
To maintain the integrity of standard Vim motions, diff-hunk-kill should be moved to a non-conflicting key.