Skip to content

Add KeyEvent::W handler to delete word operation in delete.rs #274

@coderabbitai

Description

@coderabbitai

Context

This issue was identified during review of PR #272:

Description

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

For consistency with Vim behavior, where both dw and de are valid delete word operations, the delete.rs handler should also accept KeyEvent::W.

Files Affected

  • core/src/state/notebook/inner_state/editor/normal_mode/delete.rs (line 50)

Expected Behavior

Both dw and de should perform delete word operations, consistent with change.rs implementation.

Metadata

Metadata

Assignees

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