diff options
author | terminaldweller <thabogre@gmail.com> | 2021-05-14 18:14:50 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-05-14 18:14:50 +0000 |
commit | 6e528248414e330c9e25e81596ab47b8b8a5b701 (patch) | |
tree | e1aa41a7f3198eeac187e6177ec7d4a33db229d3 /.w3m/cgi-bin/goto_clipboard.cgi | |
download | scripts-6e528248414e330c9e25e81596ab47b8b8a5b701.tar.gz scripts-6e528248414e330c9e25e81596ab47b8b8a5b701.zip |
first commitmaster
Diffstat (limited to '')
-rwxr-xr-x | .w3m/cgi-bin/goto_clipboard.cgi | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.w3m/cgi-bin/goto_clipboard.cgi b/.w3m/cgi-bin/goto_clipboard.cgi new file mode 100755 index 0000000..34eaa63 --- /dev/null +++ b/.w3m/cgi-bin/goto_clipboard.cgi @@ -0,0 +1,25 @@ +#!/usr/bin/env sh +### __ _ _ +### / _| ___| (_)_ __ ___ ___ __ _ __ _ +###| |_ / _ \ | | '_ \ / _ \/ __|/ _` |/ _` | +###| _| __/ | | |_) | __/\__ \ (_| | (_| | +###|_| \___|_|_| .__/ \___||___/\__,_|\__,_| +### |_| +### https://github.com/felipesaa +### +### Author : felipesaa +### Name : goto_clipboard.cgi +### Version : 0.1 +### Date : 2018-09-30 +### Description : paste and go feature for w3m web browser using system clipboard (aka ctrl+v) +### Depends On : w3m xsel +### Video Demo : https://youtu.be/p5NZb8f8AHA +### Source : https://github.com/felipesaa/A-vim-like-firefox-like-configuration-for-w3m +### Install : put this script in /usr/lib/w3m/cgi-bin/ + +#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 $(xsel -ob)"; +#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" |