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
Description
In
core/src/state/notebook/inner_state/editor/normal_mode/delete.rsaround line 50, the delete word handler only supportsKeyEvent::EforDeleteWordEnd, while the equivalent handler inchange.rs(line 35) supports bothKeyEvent::E | KeyEvent::W.In Vim, both
dwanddeare valid delete word operations. For consistency and better Vim compatibility,delete.rsshould also handleKeyEvent::W.Suggested Change
Update line 50 in
delete.rs:Context