wikt: added script

This commit is contained in:
dogeystamp 2022-10-21 20:37:11 -04:00
parent 3d9295c5f4
commit f1245bc1b5
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 35755 additions and 0 deletions

16
src/.local/bin/wikt Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
# Open word on Wiktionary in a browser
# Requires fzf
# Empty query to abort
# $1 sets the language to scroll to in the page
# wikt [language]
while true; do
WORD="$(cat ~/.local/bin/wikt-words | fzf | iconv -f UTF-8 -t ASCII//TRANSLIT | tr -d '-')"
if [ -z "$WORD" ]; then
break
fi
$BROWSER "https://wiktionary.org/wiki/$WORD#$1" > /dev/null 2>&1 &
done

35739
src/.local/bin/wikt-words Normal file

File diff suppressed because it is too large Load Diff