feat(meow): Move cursor down after duplicating

line

Add next-line call after duplicate-dwim to automatically advance cursor
to the newly duplicated line, improving workflow efficiency.
This commit is contained in:
Zelong Kuang
2025-12-11 19:32:02 +11:00
parent 00ca307ee7
commit 004210ae27
2 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,8 @@
(setf meow-expand-hint-remove-delay 0)
(map! :map meow-normal-state-keymap
:leader "d" 'duplicate-dwim :desc "Duplicate line/region")
:leader "d" (lambda () (interactive) (duplicate-dwim) (next-line))
:desc "Duplicate line/region")
(pcase system-type
('darwin ; macOS