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

6 lines
169 B
Bash
Raw Permalink Normal View History

2024-12-05 21:10:22 +00:00
#!/bin/bash
while read -r input; do
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"