From 9bb49d1352c970f666cbf44b0eec11817b2ccb4f Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Wed, 26 May 2021 23:30:46 +0430 Subject: fixed the w3m script problems. now using exa. some other small stuff --- .w3m/cgi-bin/goto_tmux_clipboard.cgi | 2 +- .w3m/cgi-bin/restore_session.cgi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to '.w3m/cgi-bin') 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 -- cgit v1.2.3