Skip to content

Add KeyEvent::W support to delete word handler in delete.rs for Vim consistency #273

@coderabbitai

Description

@coderabbitai

Description

In core/src/state/notebook/inner_state/editor/normal_mode/delete.rs around line 50, the delete word handler only supports KeyEvent::E for DeleteWordEnd, while the equivalent handler in change.rs (line 35) supports both KeyEvent::E | KeyEvent::W.

In Vim, both dw and de are valid delete word operations. For consistency and better Vim compatibility, delete.rs should also handle KeyEvent::W.

Suggested Change

Update line 50 in delete.rs:

Key(KeyEvent::E | KeyEvent::W) => {

Context

Metadata

Metadata

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