aboutsummaryrefslogblamecommitdiffstats
path: root/.w3m/cgi-bin/fzf_surfraw.cgi
blob: 4f4940825aacc1290a107869827167bc06f7f08b (plain) (tree)
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 -p " $PREFIX >>> Enter The Search Keyword: " INPUT
surfraw -p  "$PREFIX" "$INPUT" | xsel -p