From c4c6634d7978e00e9cb43b62c4570aae33659e2d Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Thu, 16 Oct 2025 15:02:45 +0100 Subject: [PATCH] add 'D' motion, which does the same thing as 'd$' (these two aliases exist in Vim too, to do the same thing) --- fcore/normal-mode/normal-mode.sml | 1 + todo.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fcore/normal-mode/normal-mode.sml b/fcore/normal-mode/normal-mode.sml index 7730459..6ba5a41 100644 --- a/fcore/normal-mode/normal-mode.sml +++ b/fcore/normal-mode/normal-mode.sml @@ -194,6 +194,7 @@ struct if String.size str = 0 then NormalMove.moveToEnd app else NormalMove.moveToLine (app, count) | #"%" => NormalMove.moveToMatchingPair app + | #"D" => NormalDelete.deleteToEndOfLine (app, time) | #"x" => NormalDelete.removeChr (app, count, time) | #"J" => NormalDelete.removeLineBreaks (app, count, time) | #"/" => switchToNormalSearchMode (app, false) diff --git a/todo.md b/todo.md index ec1205f..3c4f2f6 100644 --- a/todo.md +++ b/todo.md @@ -16,4 +16,4 @@ - They should search for the next char in the specific pair, the same way in Vim - Add tests for both -Afterwards, add tests for yanking. + Afterwards, add tests for yanking.