Re: [code] [textadept] Tab click event

From: Mitchell <>
Date: Sun, 24 Jul 2016 15:43:42 -0400 (EDT)

Hi Gabriel,

On Sat, 23 Jul 2016, Gabriel Dubatti wrote:

> El 23/07/16 a las 22:57, Mitchell escribió:
>> Hi Gabriel,
>> On Sat, 23 Jul 2016, Gabriel Dubatti wrote:
>>> Hi Mitchell,
>>> I just wondered if you can add a "tab_clicked" event that allows us, if
>>> we want, to change the view 'before' the buffer is changed.
>>> I find this more natural (more IDE like) than the actual behavior,
>>> specially when split views show search results or compiler output.
>> Do you mean in an event handler, call `ui.goto_view(...)` such that
>> subsequent `events.BUFFER_BEFORE_SWITCH` and `events.BUFFER_AFTER_SWITCH`
>> apply to the buffer in the view just switched to?
> Yes. I use the tab click event to change the view (if needed) before the
> buffer switching occurs.
> For example, if the tab corresponding to a project file is clicked, the
> project view is enforced.
> This prevents that the project file is displayed in the wrong view (which
> breaks the "IDE panels" effect).
> The same holds for the search results view and for regular files (that must
> not be shown in project or in the search views).
> [snip]

Thanks for the confirmation. Committed[1]. This will be in the next



You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sun 24 Jul 2016 - 15:43:42 EDT

This archive was generated by hypermail 2.2.0 : Mon 25 Jul 2016 - 06:50:16 EDT