summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Allen <screwtape@froup.com>2020-09-22 01:29:03 +1000
committerTim Allen <screwtape@froup.com>2020-09-22 01:29:03 +1000
commit93e5a3b51f81febeadaeb474dd97fd4bb881b787 (patch)
tree974aee0de2160445dc7bf0adac8f20003461fdbc
parentf75f484b842daf9f548f26755d7ee3c9b7346eeb (diff)
spell.kak: Replace "kak -f" with "sed" for efficiency.
-rw-r--r--rc/tools/spell.kak2
1 files changed, 1 insertions, 1 deletions
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 '<a-s><a-K>^&<ret>d%s^[^:]*: <ret>d%s, <ret>c<ret><esc>'
+ sed -n -e '/^&/ { s/^[^:]*: //; s/, /\n/g; p }'
} \
"Replace with: " \
%{