[Toybox] [PATCH] ls: Ensure file names are separated by 2 spaces

Denys Nykula nykula at ukr.net
Tue Oct 29 16:08:47 PDT 2019


> > be able to check "where is the cursor now" after
> > operations, and maybe get a dump of the simulated screen output.

Jarno, you could add vi an option that applies headlessly a key sequence
from a file? For example, a regression test with it would catch this
first line deletion error that I have now. Pretending the option exists:

printf '\nseitan\n' >seitan; printf 'dd\n:wq!\n' >key
vi -s key seitan; cat seitan
# Want: seitan\n
# Have: Segmentation fault

> That could be very handy for testing things like less, man and vi that
> should perhaps eventually share drawing, movement and reg exp search
> codebase...

I don't install either more or less, and will be glad to not need either
vim or a lynx wrapper, if you teach toy vi stdin. Other tools should
just pipe to it. It's a case where reuse of entire command makes more
sense than sharing a library function.



More information about the Toybox mailing list