[Toybox] [PATCH] optional fatter cat(1)

Rich Felker dalias at libc.org
Sat Jan 3 20:31:38 PST 2015


On Sun, Jan 04, 2015 at 02:24:19PM +1000, David Seikel wrote:
> On Sat, 3 Jan 2015 23:07:55 -0500 Rich Felker <dalias at libc.org> wrote:
> 
> > > If vi/uemacs/joe/nano are trivial extensions of the same basic
> > > infrastructure (sort of true modulo vi command mode), I have no
> > > problem implementing lots of sets of keybindings. But the first
> > > target is vi because it's the only one actually in posix.  
> > 
> > My guess is that this is not so easy, and that attempting to do it
> > this way would have a lot of subtle failures that would just annoy
> > users. But it might be a lot less annoying than being stuck with
> > nothing but vi...
> 
> It was actually quite easy once I had done my homework.  I don't see
> how it "would have a lot of subtle failures that would just annoy
> users."

The how/why is just past experience, e.g. joe -- jmacs feels nothing
like emacs and it's frustrating because your brain has to be in "emacs
mode" to use it, but then nothing actually works like emacs. The only
emacs workalike I've seen that actually fits my emacs workflow is mg,
and even then only until I have a non-ASCII file, in which case it
breaks horribly...

> Though my design wasn't "start with vi and bend it to look
> like other editors", it was "research all the targeted editors /
> pagers, figure out what's common and what's not, then come up with a
> generic infrastructure that can handle them all".

That might work a lot better. I'd love to see it work out. I'm just
not holding my breath.. :-)

Rich


More information about the Toybox mailing list