feat: implement selection-first multi-target editing

This commit is contained in:
Valdemar Lorenzen
2026-10-08 10:42:16 +02:00
parent 53fcd7a1f2
commit 8ef92a7b15
6 changed files with 1485 additions and 544 deletions
+7 -3
View File
@@ -11,9 +11,13 @@ Normal: i/a insert, I/A insert at first nonblank/end, o/O new line
h/j/k/l move, 0/$ line ends, x delete, J join lines
w/b/e word next/previous/end, W/B/E whitespace-delimited WORDs
u undo, U redo, : command, / search, n/N next/previous match
v select, p/P paste after/before cursor
Visual: motions extend selection, y copy, d/x/Delete cut, c change, v/Esc cancel
Insert: Esc returns to normal
v select, p/P paste fragments, Ctrl+k/Ctrl+e clone above/below
Esc keeps only the primary caret
Visual: motions extend selections, y copy, d/x/Delete cut, c change
I/A insert at each selected line's first nonblank/end
Ctrl+l split rows, Ctrl+n add occurrence, Ctrl+s skip, Ctrl+a all
v/Esc returns to Normal retaining carets
Insert: Esc returns to Normal retaining carets
Search: Enter finds next literal match, Esc cancels (case-sensitive, wraps)
Commands: :w [PATH], :q, :q!, :wq [PATH], :plugins, :PLUGIN [ARGS]