by jps on Sat Oct 03, 2009 12:09 am
No worries, I'd already written a reply, I'll leave it here anyway:
That binding works fine for me, although with the contexts:
- allPrecedingText should likely have a star after the [], rather than a plus...?
- allSelectionsNonEmpty==false, I suspect allSelectionsEmpty==true would be more correct (in the face of some selections being empty and others not)
On a side note, contexts interact a little strangely with sequence key bindings and predicted character input: they're evaluated at each step of the way, so you need to ensure that the contexts still match when predicted characters are in the buffer. I don't think this is an issue here, but it was with the HTML snippets in previous versions.