Re: [code] [textadept] Buffer/view properties

From: Mitchell <m.att.foicica.com>
Date: Mon, 26 Jan 2015 19:13:35 -0500 (EST)

Hi Robert,

On Mon, 26 Jan 2015, Robert Gieseke wrote:

> Hi Mitchell,
>
> would you consider a patch that made Textadept buffers remember
> properties that are now view-specific like margins, wrap mode, eol etc.?
> Likely similar to what's already done for caret and selection position.

Yes I would be open to this. Perhaps something like a table that contains
settings for particular views? For example:

   buffer._wrap_mode = {
     [_VIEWS[1]] = ...,
     [_VIEWS[2]] = ...,
     ...
   }

Then when switching to a view, do a look-up and restore it?

> Now that there are more and more modules for Textadept re-setting these
> properties can cause conflicts between modules. For example changing
> margins in Textredux conflicts with textadept-vi (and potentially other
> modules), when Textredux tries to take care of re-setting them. Another
> example is changing the wrap mode. I usually want it changed for a
> specific buffer, not the view.

I agree.

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 Mon 26 Jan 2015 - 19:13:35 EST

This archive was generated by hypermail 2.2.0 : Tue 27 Jan 2015 - 06:46:43 EST