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.
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 handlesKeyEvent::EforDeleteWordEnd, while the corresponding handler inchange.rs(line 35) handles bothKeyEvent::E | KeyEvent::W.For consistency with Vim behavior, where both
dwanddeare valid delete word operations, the delete.rs handler should also acceptKeyEvent::W.Files Affected
core/src/state/notebook/inner_state/editor/normal_mode/delete.rs(line 50)Expected Behavior
Both
dwanddeshould perform delete word operations, consistent with change.rs implementation.