Skip to content

C-w in command mode and minibuffer inconsistent with Vim/evil #7926

Description

@totallyuniquelily

I confirm that...

  • I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.
  • I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.
  • The issue can be reproduced on the latest available commit of Doom.
  • The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)

Expected behavior

Deleting words with C-w in the minibuffer and ex-commands1 should function the same as C-w in insert mode, i.e. delete Vim/Evil words (sequence of word characters or non-word characters).
Probably call evil-delete-backward-word like in insert mode.

Current behavior

When typing in a command with : 1 or in a minibuffer, C-w will call either backward-kill-word or doom/delete-backward-word. Both of these use the Emacs definition of words and not the Evil one as evil-delete-backward-word does

Steps to reproduce

  1. Open Emacs (w/ Evil enabled as per default)
  2. (optional) Open scratch buffer, insert some text, and C-w it
  3. Open the minibuffer (e.g., by using M-x)
  4. Type "test -- -test"
  5. Press C-w twice
  6. Observe the entire line being deleted, instead of just "-test"

System Information

https://pastebin.com/3uMUDVHx

Footnotes

  1. edit: I believe the ex-commands case is an upstream issue (#1921). I've edited the report (and reproduction steps) reflect that 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    :editor evilPertains to Doom's :editor evil module

    Fields

    Origin

    None yet

    Open to PRs

    No PRs

    Projects

    Status
    Investigating

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions