summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scratch.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/scratch.txt b/scratch.txt
index bc48870..189d89d 100644
--- a/scratch.txt
+++ b/scratch.txt
@@ -3938,7 +3938,13 @@ First install the termux-api package with:
~~~
pkg install termux-api ~~~ This gives you access to a shell command `termux-clipboard-set` and `-get` so you can copy and past from vim. I added this to my Termux .vimrc and use control copy in visual mode to send that text to the system clipboard:
~~~
-bash script tk
+#! /bin/sh
+cat $1 \
+ | pandoc -t html \
+ > /tmp/output.html \
+ && open output.html \
+ && read -n 1 \
+ && rm output.html
~~~
That works for updating this site, but some sites I write for want rich text, which I generate using pandoc and then open in the browser using this script: