acme9k/scripts/Slide+

23 lines
289 B
Text
Raw Normal View History

2022-04-07 21:52:36 +00:00
#!/bin/sh
tagdata=$(9p read acme/${winid}/tag)
set -- ${tagdata}
path=$1
slide=$(basename ${path})
oldifs=${IFS}
IFS='
'
found=0
for s in *; do
if [ ${found} -eq 1 ]; then
Slide ${s}
break;
fi
if [ "${s}" != "${slide}" ]; then
continue
else
found=1
fi
done