You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
475 B

#!/usr/bin/env sh
folder="$HOME/.local/share/Zeal/Zeal/docsets/WordPress.docset/Contents/Resources/Documents/developer.wordpress.org/reference/"
file=$(find "$folder" -name "index.html" -not -path "*/page/*" -not -path "*/since/*" |
awk -F '/' '{print "(" $(NF-2) ") " $(NF-1)}' |
rofi -dmenu |
tr -d '()' |
awk '{print $1 "/" $2 "/index.html"}')
#file=$(find "$folder" -name "index.html" -not -path "*/methods/*" )
#echo "$file"
echo "$folder$file" | xargs qutebrowser