aboutsummaryrefslogtreecommitdiffstats
path: root/.w3m/cgi-bin
diff options
context:
space:
mode:
Diffstat (limited to '.w3m/cgi-bin')
-rwxr-xr-x.w3m/cgi-bin/goto_tmux_clipboard.cgi2
-rwxr-xr-x.w3m/cgi-bin/restore_session.cgi2
2 files changed, 2 insertions, 2 deletions
diff --git a/.w3m/cgi-bin/goto_tmux_clipboard.cgi b/.w3m/cgi-bin/goto_tmux_clipboard.cgi
index fe91b57..591c21a 100755
--- a/.w3m/cgi-bin/goto_tmux_clipboard.cgi
+++ b/.w3m/cgi-bin/goto_tmux_clipboard.cgi
@@ -22,7 +22,7 @@
#GOTO url in clipboard in current page. If the clipboard has a
#"non url string/nothing" an blank page is shown.
-printf "%s\r\n" "W3m-control: GOTO $(tmux paste-buffer)";
+echo "W3m-control: GOTO $(tmux show-buffer)";
#delete the buffer (element in history) created between the current page and
#the searched page by calling this script.
printf "W3m-control: DELETE_PREVBUF\r\n"
diff --git a/.w3m/cgi-bin/restore_session.cgi b/.w3m/cgi-bin/restore_session.cgi
index aa0ba41..4e30311 100755
--- a/.w3m/cgi-bin/restore_session.cgi
+++ b/.w3m/cgi-bin/restore_session.cgi
@@ -32,7 +32,7 @@ echo "#!/usr/bin/env sh" > "$RESTORE_SESSSION"
echo "torsocks w3m -graph \\" >> "$RESTORE_SESSSION"
# remove dupes without sorting, add -N flag at beginning and append trailing slash to each url
awk '!x[$0]++' "$HOME/.w3m/RestoreSession.txt" | while read -r line ; do echo "-N '$line' \\" >> "$RESTORE_SESSSION" ; done
-echo "2>/dev/null" >> "$RESTORE_SESSSION"
+# echo "2>/dev/null" >> "$RESTORE_SESSSION"
chmod +x "$RESTORE_SESSSION"
## OUTPUT SCRIPT FILE EXAMPLE ~/.w3m/bin/w3mlastsession