wikt: added script
This commit is contained in:
parent
3d9295c5f4
commit
f1245bc1b5
16
src/.local/bin/wikt
Executable file
16
src/.local/bin/wikt
Executable 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
35739
src/.local/bin/wikt-words
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user