From 93e5a3b51f81febeadaeb474dd97fd4bb881b787 Mon Sep 17 00:00:00 2001 From: Tim Allen Date: Tue, 22 Sep 2020 01:29:03 +1000 Subject: [PATCH] spell.kak: Replace "kak -f" with "sed" for efficiency. --- rc/tools/spell.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/tools/spell.kak b/rc/tools/spell.kak index db8e9daf..b9fe5903 100644 --- a/rc/tools/spell.kak +++ b/rc/tools/spell.kak @@ -152,7 +152,7 @@ define-command \ fi printf %s "$kak_selection" | eval "aspell -a $options" | - kak -f '^&d%s^[^:]*: d%s, c' + sed -n -e '/^&/ { s/^[^:]*: //; s/, /\n/g; p }' } \ "Replace with: " \ %{