all repos — acme @ ccb2aa148e25e4033cd89583ab7f7f3a04d701d3

fork of the acme editor from plan9port - keybinds, tweaks, config.h, etc

scripts/Slide+ (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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