On Wed, Feb 11, 2009 at 12:14 AM, Jeff Wheeler <[email protected]> wrote: > > On Tue, 2009-02-10 at 09:50 +0100, Jean-Philippe Bernardy wrote: >> On Sat, Feb 7, 2009 at 4:51 PM, Jeff Wheeler <[email protected]> wrote: >> >> > 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). >> >> It does not. I think it would be rather easy to implement though >> (localized at least), >> you can find the code in Yi.UI.Vty.refresh. > > I tried playing with this for a while, and I actually ran into some > problems doing it. The most frequent problem I hit was not moving the > cursor as I would expect, so it would continue typing at the point from > before the completion had been initiated. E.g., ":e [tab]", then the the > new text would correctly fill multiple lines, but typing would continue > at the old point, on top of the new text.
This seems to have to do with "mini window" handling... The status line is handled by the line: withAttributes statusBarStyle (take xss $ cmd ++ repeat ' ') >> > 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? >> >> This is also a long-time wanted feature; I think you refer to >> quasiquoting rather than >> TH per se though. > > I didn't write the code that I linked to (somebody, I forget who, wrote > it to teach me about QQ, in #haskell), so I'm not sure I can simply > copy/paste it into Yi.Keymap or similar, but it is essentially all we > need. I'd put it in Yi/Keymap/Keys (?) >> We have a parsing library (Parser.Incremental). Student(s) will start now >> with using it to improve/implement some modes. Once they are done I >> expect it will be easy to copy/paste their work and do syntax-level stuff for >> other languages. > > You teach? This is part of my duties as PhD student. > Anyways, I'm excited to see some good examples of this. I don't really > understand all the parsing code, so I'd love to see it being used in > various neat ways beyond syntax highlighting tokens. Me too :) -- JP --~--~---------~--~----~------------~-------~--~----~ Yi development mailing list [email protected] http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---
