hello people,
given the slides of my talk in the slides.vim format
(https://github.com/eiro/slides.vim), i want some of
them to be shown one bullet a slide. so when i have
this input:
› Renater et le libre
Sympa
FileSender
the desired output is:
› Renater et le libre
Sympa
› Renater et le libre
FileSender
and it seems gather is the perfect solution for that so i started to
write it (any golfer magic or other feedback warmly welcome):
@*ARGS.map: {
gather {
my @lines;
for .IO.lines -> $l {
if /'›'/ {
@lines and take @lines;
@lines = $l;
}
else {
@lines.push($l);
take @lines if /''/;
}
}
}
}
this doesn't work as it seems that '›' and '' aren't matched.
i tried both
for .IO.lines -> $l {
# following https://docs.perl6.org/routine/lines#class_IO::Path
for .IO.lines(enc => 'utf8') -> $l {
but none of them worked and i run out of idea to know what's going on.
any idea or documentation point for me ?
regards
marc