bin/st-edit @ 005c4bb9b6e6

More
author Steve Losh <steve@stevelosh.com>
date Mon, 06 Jan 2020 17:02:45 -0800
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"