dots-of-war/files/scripts/autocompleteWords.sh

6 lines
170 B
Bash
Raw Normal View History

2020-10-30 22:02:38 +02:00
#! /bin/sh
2020-06-21 12:41:26 +02:00
while read -r input; do
2020-10-30 22:02:38 +02:00
echo "$input" | sed 's/\s\+/\n/g' | sed -n '/.\{5\}.\+/p'
done | fzf --height 10 | tr -d "\n" | kitty @send-text --stdin -m "id:$1"