plugins for wvkbd using swipeGuess
predictor: experimental compound word completion
| -rwxr-xr-x | predictor.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/predictor.sh b/predictor.sh index f2ad3bb..931ce88 100755 --- a/predictor.sh +++ b/predictor.sh @@ -11,6 +11,9 @@ saveWord(){ while read -r word; do printf "$word" > "$lw" echo "$word" + end="$(printf "$word."|wc -c)" + rm -f "$complete" + grep -m 5 "^$word." "$words" | cut -b$end-99 |tr '\n' '\t' |sed 's/\t$/\n/g' > "$sock" done } typeSomehow(){ |