aboutsummaryrefslogtreecommitdiffstats
path: root/bin/fzf_surfraw
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbin/fzf_surfraw6
-rwxr-xr-xbin/fzf_surfraw_tmux6
2 files changed, 12 insertions, 0 deletions
diff --git a/bin/fzf_surfraw b/bin/fzf_surfraw
new file mode 100755
index 0000000..de297c1
--- /dev/null
+++ b/bin/fzf_surfraw
@@ -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
diff --git a/bin/fzf_surfraw_tmux b/bin/fzf_surfraw_tmux
new file mode 100755
index 0000000..b6344cc
--- /dev/null
+++ b/bin/fzf_surfraw_tmux
@@ -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
+pidof tmux >/dev/null && tmux set-buffer "$(surfraw -p "$PREFIX" "$INPUT")"