repo: golang action: commit revision: path_from: revision_from: 5a2be9adfb1e74e0afbbbfa804f91f6ca1c9ee51: path_to: revision_to:
commit 5a2be9adfb1e74e0afbbbfa804f91f6ca1c9ee51 Author: epochDate: Wed Mar 11 03:20:45 2020 -0500 basic readme. forgot a line for uristart.conf diff --git a/README b/README new file mode 100644 index 0000000000000000000000000000000000000000..4c8c19aebe67b1cbdccb381df0b631a1af4542d8 --- /dev/null +++ b/README @@ -0,0 +1,8 @@ +golang, but not really, this is about port 70 gopher. + +These two scripts are meant to be triggered by uristart +and the output need to go to a terminal that'll make URLs clickable +and then pass the link back into uristart. + +I abuse the file: URI by adding a query string that specifies the mime-type +that any file handler should use to launch file. diff --git a/etc/uristart.conf b/etc/uristart.conf
--- a/etc/uristart.conf +++ b/etc/uristart.conf @@ -1 +1,2 @@ gopher: gopher '%d' '%P' '%p' +file: if [ -e '%p' ];then eval "$(printf "$(grep "^$(if [ "%q" ];then echo '%q' | tr '&' '\n' | grep ^mime-type= | cut -d= -f2-; else file --mime-type '%p' | cut '-d ' -f2;fi)"$'\t' ~/.config/mimetype.conf | cut -d$'\t' -f2- | sed 's/^'$'\t''*//g')" '%p')";else xmessage file %p does not exist;fi
-----END OF PAGE-----