select all text behavior

From: Scott Weisman <>
Date: Thu, 9 Dec 2010 00:31:10 -0800 (PST)

I'm interested in further tweaking this. Robert gave a binding for that reverted on esc. But I would like to change this to
revert to the old cursor pos on ANY keypress, and then pass that
keypress through for further processing. Is this possible?

Something like: = { function ()
    local buffer = buffer
    local KEYSYMS = _m.textadept.keys.KEYSYMS
    local pos = buffer.current_pos
    local restore = events.connect('keypress', function(code)
            events.disconnect('keypress', restore)
            *** pass code here to the next or default keypress event
end }
Received on Thu 09 Dec 2010 - 03:31:10 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:56:17 EST