aboutsummaryrefslogtreecommitdiffstats
path: root/.w3m/cgi-bin/fzf_surfraw.cgi
blob: de297c1e074a86ec858808be63ae47b99900d0e2 (plain) (blame)
1
2
3
4
5
6
#!/usr/bin/env sh

PREFIX=$(surfraw -elvi | grep -v 'LOCAL\|GLOVAL'| fzf --algo=v2 -e | awk '{print $1}')
if [ "$PREFIX" = "" ]; then exit;fi
read -r -e -p " $PREFIX >>> Enter The Search Keyword: " INPUT
surfraw -p  "$PREFIX" "$INPUT" | xsel -p