Re: [code] Improved File Browser

From: Mitchell <m.att.foicica.com>
Date: Thu, 11 Oct 2018 08:39:30 -0400 (EDT)

Hi Alexander,

On Thu, 11 Oct 2018, Alexander Misel wrote:

> Now I am looking forward to a feature that locks a view to only have ONE buffer (i.e. File Browser, TODO list). Any sugguestions on how to implement it?

One idea I had was to connect to `events.BUFFER_AFTER_SWITCH` and check to see if the current view (`view`) contains a buffer it shouldn't. If so, immediately call `view:goto_buffer(...)` with the buffer you want to "lock". I'm not certain this will work. It's just an idea.

Cheers,
Mitchell

-- 
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 Thu 11 Oct 2018 - 08:39:30 EDT

This archive was generated by hypermail 2.2.0 : Fri 12 Oct 2018 - 06:40:24 EDT