diff options
author | luxagraf <sng@luxagraf.net> | 2023-06-10 17:58:19 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-06-10 17:58:19 -0500 |
commit | f7229f6998f1e2e57901e66b8f6bbcaab00d3283 (patch) | |
tree | b3bbe2bc686b96063705c145a0a215fe7360f269 | |
parent | 2c5c45d4f853f375316edb8f0aad6f6fed7ea1ad (diff) |
added script to tablet post
-rw-r--r-- | scratch.txt | 8 |
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: |