Skip to content

Updated Bug Report: Unexpected 'd' Binding in evil-collection-diff-mode.el #894

@jamescherti

Description

@jamescherti

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

  1. Open a file or buffer in diff-mode.
  2. Ensure evil-collection-diff-mode is loaded.
  3. Select text.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions