aboutsummaryrefslogtreecommitdiffstats
path: root/.w3m
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-01-20 17:57:56 +0000
committerterminaldweller <thabogre@gmail.com>2022-01-20 17:57:56 +0000
commit2595fc9b9177406b5599406fed849cb7bfbaaaa8 (patch)
tree6bd3f5860973507e210e5ec7daefd3a8411f142d /.w3m
parentupdates (diff)
downloadscripts-2595fc9b9177406b5599406fed849cb7bfbaaaa8.tar.gz
scripts-2595fc9b9177406b5599406fed849cb7bfbaaaa8.zip
updates
Diffstat (limited to '')
-rwxr-xr-x.w3m/cgi-bin/fzf_surfraw.cgi2
-rw-r--r--.w3m/config2
-rw-r--r--.w3m/keymap14
3 files changed, 9 insertions, 9 deletions
diff --git a/.w3m/cgi-bin/fzf_surfraw.cgi b/.w3m/cgi-bin/fzf_surfraw.cgi
index de297c1..4f49408 100755
--- a/.w3m/cgi-bin/fzf_surfraw.cgi
+++ b/.w3m/cgi-bin/fzf_surfraw.cgi
@@ -2,5 +2,5 @@
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
+read -r -p " $PREFIX >>> Enter The Search Keyword: " INPUT
surfraw -p "$PREFIX" "$INPUT" | xsel -p
diff --git a/.w3m/config b/.w3m/config
index f06c5eb..8b64d83 100644
--- a/.w3m/config
+++ b/.w3m/config
@@ -71,7 +71,7 @@ preserve_timestamp 1
keymap_file keymap
document_root
personal_document_root
-cgi_bin /usr/local/libexec/w3m/cgi-bin
+cgi_bin /usr/lib/w3m/cgi-bin
index_file
mime_types ~/.w3m/mime.types, /etc/mime.types
mailcap ~/.w3m/mailcap, /etc/w3m/mailcap, /etc/mailcap
diff --git a/.w3m/keymap b/.w3m/keymap
index c78c782..ddd406a 100644
--- a/.w3m/keymap
+++ b/.w3m/keymap
@@ -114,18 +114,18 @@ keymap Q COMMAND "EXTERN 'echo %s > ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTE
# external stuff
keymap SPC-r COMMAND "SHELL 'readable $W3M_URL -p html-title,html-content > /tmp/readable.html'; LOAD /tmp/readable.html"
-keymap xt COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw_tmux.cgi ; GOTO /usr/local/libexec/w3m/cgi-bin/goto_tmux_clipboard.cgi"
-keymap XT COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw_tmux.cgi ; TAB_GOTO /usr/local/libexec/w3m/cgi-bin/goto_tmux_clipboard.cgi"
-# keymap xs COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; GOTO /usr/local/libexec/w3m/cgi-bin/goto_clipboard.cgi"
-keymap xs COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; GOTO /usr/local/libexec/w3m/cgi-bin/goto_clipboard_primary.cgi"
-keymap XS COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; TAB_GOTO /usr/local/libexec/w3m/cgi-bin/goto_clipboard_primary.cgi"
+keymap xt COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw_tmux.cgi ; GOTO /usr/lib/w3m/cgi-bin/goto_tmux_clipboard.cgi"
+keymap XT COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw_tmux.cgi ; TAB_GOTO /usr/lib/w3m/cgi-bin/goto_tmux_clipboard.cgi"
+# keymap xs COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; GOTO /usr/lib/w3m/cgi-bin/goto_clipboard.cgi"
+keymap xs COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; GOTO /usr/lib/w3m/cgi-bin/goto_clipboard_primary.cgi"
+keymap XS COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; TAB_GOTO /usr/lib/w3m/cgi-bin/goto_clipboard_primary.cgi"
# keymap XS COMMAND "SHELL /home/bloodstalker/scripts/bin/fzf_surfraw ; TAB_GOTO /home/bloodstalker/scripts/bin/goto_clipboard.cgi"
# keymap xs COMMAND "SHELL /home/bloodstalker/scripts/bin/fzf_surfraw"
-keymap go COMMAND "SHELL /usr/local/libexec/w3m/cgi-bin/goto_clipboard.cgi"
+keymap go COMMAND "SHELL /usr/lib/w3m/cgi-bin/goto_clipboard.cgi"
# keymap XS COMMAND "SHELL /home/bloodstalker/scripts/bin/fzf_surfraw; TAB_GOTO /home/bloodstalker/scripts/bin/goto_clipboard.cgi"
#
keymap d COMMAND "EXTERN 'echo %s >> ~/.w3m/RestoreTab.txt' ; CLOSE_TAB"
-keymap u TAB_GOTO /usr/local/libexec/w3m/cgi-bin/restore_tab.cgi
+keymap u TAB_GOTO /usr/lib/w3m/cgi-bin/restore_tab.cgi
keymap SPC-m CURSOR_MIDDLE
keymap SPC-l CURSOR_BOTTOM