Thus spoke Jeff Wheeler:
> I think I remember seeing something to that effect in one of the old
> Yi.User.JPB configs somewhere, and the idea was to split the commands so
> that the left hand initiated anything, and the right hand provided a
> modifier, if I understood it correctly.

Sound nice, but…
I'm a Dvorak user :-\  I imagine Azerty might be a similar obstacle.

> This doesn't seem too complicated to implement, assuming the statusbar
> already allows variable heights (I think it does, because entering
> command mode in Vim with ':' changes the height from one to two lines).

Well, we need a pretty printer. There are examples in RWH, maybe they could be
useful. Also, I remember some Haskell PP-thing popping up on Reddit recently.
Here are two links that may be of help? (Haven't looked at those, so it's your
call)

http://tinyurl.com/bgzhwm
http://blog.unsafeperformio.com/?p=31

 
> Somewhat related, I think it would be super neat to write keybindings
> using TemplateHaskell, with a syntax like [$keys|C-M-a|]. With tons of
> help from #haskell, I got something like [1] (way more help than I
> deserved, hehe). Anybody else think that would be neat?

Two users in #yi suggested a feature like this today. I didn't know what it was
all about, since I'm no good with Emacs, but I think this is pretty much it, so
you have a market.

> When I wrote the Python lexer, I never instructed Yi on how to combine
> the tokens into a tree, forming structures like "function definition"
> and "class definition". I'd like to do this; I think Parsec or BNF
> syntax suggest a good way to handle this.

THAT's what I've been looking for! A BNF-style syntax or so. That would cover a
lot of languages quickly, since most have a BNF grammar somewhere (well, maybe
not C++, but…)

Aleks

Attachment: pgpywaMVvD4pc.pgp
Description: PGP signature

Reply via email to