1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-24 07:53:41 +03:00

spell.kak: Replace "kak -f" with "sed" for efficiency.

This commit is contained in:
Tim Allen 2020-09-22 01:29:03 +10:00
parent f75f484b84
commit 93e5a3b51f

View File

@ -152,7 +152,7 @@ define-command \
fi
printf %s "$kak_selection" |
eval "aspell -a $options" |
kak -f '<a-s><a-K>^&<ret>d%s^[^:]*: <ret>d%s, <ret>c<ret><esc>'
sed -n -e '/^&/ { s/^[^:]*: //; s/, /\n/g; p }'
} \
"Replace with: " \
%{