bin/st-edit @ 8148377ec342

Update subrepo
author Steve Losh <steve@stevelosh.com>
date Tue, 07 Nov 2023 10:05:28 -0500
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"