summaryrefslogtreecommitdiff
path: root/.w3m/cgi-bin/fnx_execute.cgi
diff options
context:
space:
mode:
Diffstat (limited to '.w3m/cgi-bin/fnx_execute.cgi')
-rwxr-xr-x.w3m/cgi-bin/fnx_execute.cgi8
1 files changed, 8 insertions, 0 deletions
diff --git a/.w3m/cgi-bin/fnx_execute.cgi b/.w3m/cgi-bin/fnx_execute.cgi
new file mode 100755
index 0000000..837b990
--- /dev/null
+++ b/.w3m/cgi-bin/fnx_execute.cgi
@@ -0,0 +1,8 @@
+#!/usr/bin/env sh
+w3m_fnx_clipboard="$(cat /tmp/w3m_fnx_clipboard.txt)"
+case "$w3m_fnx_clipboard" in
+ *.cgi) echo "W3m-control: GOTO file:/cgi-bin/$w3m_fnx_clipboard" ;;
+ http://*|https://*|www.*|gopher://*|gemini://*) echo "W3m-control: TAB_GOTO $w3m_fnx_clipboard" ;;
+ /*|\~/*) echo "W3m-control: TAB_GOTO $w3m_fnx_clipboard" ;;
+ *) echo "W3m-control: $w3m_fnx_clipboard" ;;
+esac