On Sat, Sep 7, 2019 at 12:23 PM Jarno Mäkipää <[email protected]> wrote: > > I apologize for potentially being responsible of destroying config > files on your device :-)
the shell scripts and awk files i was messing with to run the one-true-awk tests didn't mind :-) > Happy to hear someone already tried to use it. There will be some > problems with files that has non UNIX line-endings also tabs will be > replaced by spaces etc... > But for task like changing variable or commenting out few lines it > might come handy when there is nothing else available. exactly: that was all i needed, and it did that well enough. > I'm trying to find time and motivation to continue working on this, > now as the summer has past. > > -Jarno > > On Sat, Sep 7, 2019 at 10:20 AM enh via Toybox <[email protected]> > wrote: > > > > I really needed to be able to edit a file on the device, and this was > > the nearest thing handy, and it turns out to be more or less usable for > > basic editing, so... > > > > Support cursor keys. > > > > Support :q (since there's currently no record of whether the file's > > modified or not, :q is the same as :q!). > > > > Add 'A' to insert at end of line. > > > > Add 'n' to find next after '/'. > > > > Fix backspace all the way to get out of ex command mode. > > > > Fix escape sequences to not hard-code assumptions about the terminal's > > default background and foreground colors. > > > > Fix 'spesial' typo for 'special', and remove explicit array sizes. > > --- > > toys/pending/vi.c | 109 ++++++++++++++++++++++++++++------------------ > > 1 file changed, 66 insertions(+), 43 deletions(-) > > _______________________________________________ > > Toybox mailing list > > [email protected] > > http://lists.landley.net/listinfo.cgi/toybox-landley.net > _______________________________________________ > Toybox mailing list > [email protected] > http://lists.landley.net/listinfo.cgi/toybox-landley.net _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
