timvisher/vimgolf — pull request #1 by purcell (2011-11-08 16:43:43+00:00)
Title: Parse C-0 etc. in addition to M-<key> sequences encoded in hex

Turns out `single-key-description` does a nice job of rendering these key sequences into pretty strings. It might even be able to handle control chars, but I haven't checked yet. I found that function by looking at the source for `view-lossage`.

Overall it's annoying that the contents of the dribble file are so messy. The `edit-kbd-macro` code has a bunch of machinery for translating key sequences etc., and can even be used to convert lossage into a kbd macro, with the exception that it barfs if the lossage contains mouse events. There may be a way, then, to squeeze the dribbled keystrokes into those macro-related functions. I'd suggest using the kbd macro format as the standard output notation for vimgolf-mode, since it's regular and analogous to vim's script files.

Great job with all this -- thanks for sharing!

-Steve