From b7162371a3d6392b77e043c021a997ef2e75eae0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 29 Mar 2020 01:44:53 -0400 Subject: [PATCH] bin/spell: back to fzf I no longer use skim --- bin/spell | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/spell b/bin/spell index 28946bcc..a1d0ea82 100755 --- a/bin/spell +++ b/bin/spell @@ -1,10 +1,10 @@ #!/usr/bin/env bash -# Find the correct spelling of a word. Uses (and requires) skim to select the +# Find the correct spelling of a word. Uses (and requires) fzf to select the # correct word. This output can be piped to something like dict to find # definitions/synonyms. # -# Requires: aspell, skim +# Requires: aspell, fzf # Usage: spell mispeling # Example: dict $(spell mispeling) @@ -14,7 +14,7 @@ if [[ "$result" == '*' ]]; then else words=$(echo "$result" | sed $'s/[:,] /\\\n/g' | tail -n +2) if (( $(wc -l <<< "$words") > 1 )) && command -v sk >/dev/null; then - sk <<< "$words" + fzf <<< "$words" else echo "$words" fi