From 6e528248414e330c9e25e81596ab47b8b8a5b701 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 14 May 2021 22:44:50 +0430 Subject: first commit --- .w3m/cgi-bin/fzf_surfraw.cgi | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .w3m/cgi-bin/fzf_surfraw.cgi (limited to '.w3m/cgi-bin/fzf_surfraw.cgi') diff --git a/.w3m/cgi-bin/fzf_surfraw.cgi b/.w3m/cgi-bin/fzf_surfraw.cgi new file mode 100755 index 0000000..de297c1 --- /dev/null +++ b/.w3m/cgi-bin/fzf_surfraw.cgi @@ -0,0 +1,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 -- cgit v1.2.3