Re: [code] [textadept] Update UI Events

From: Robert Gieseke <rob.g.att.web.de>
Date: Tue, 24 Jun 2014 15:21:11 +0200

Am 11/06/14 16:20, schrieb Mitchell:
>> - Is it possible to receive a notification, when Textadept re-gains
>> focus? I would like to check for changes on disk (e.g version control
>> checkout) when going back to Textadept.
>
> Yes it would be possible, and I'll commit something soon.
>

This works very well, thanks! I use this for re-sizing now:

events.connect(events.FOCUS, function()
   local splits = ui.get_split_table()
   if #splits == 2 and splits.vertical
    and splits.size ~= ui.size[1] / 2 then
     view.size = ui.size[1] / 2
   end
end)

Cheers,
Robert

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 24 Jun 2014 - 09:21:11 EDT

This archive was generated by hypermail 2.2.0 : Wed 25 Jun 2014 - 06:52:11 EDT