bin/st-edit @ dd879591c545

Hack together a little weather CLI
author Steve Losh <steve@stevelosh.com>
date Sun, 30 Aug 2020 21:13:42 -0400
parents 188c44d7247c
children (none)
#!/bin/sh
# see https://st.suckless.org/patches/externalpipe/editscreen.sh
tmpfile=$(mktemp /tmp/st-edit.XXXXXX)
trap  'rm "$tmpfile"' 0 1 15
cat > "$tmpfile"
st -e "nvim" -c 'normal! G' -c '?\v\S' -c 'nohl' -c 'normal! $' "$tmpfile"