bin/st-edit @ ba6a5cb2dc59

Go folding and more
author Steve Losh <steve@stevelosh.com>
date Wed, 13 Mar 2019 13:33:42 -0400
parents 80f5ec3932ae
children 188c44d7247c
#!/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" "$tmpfile"