Re: [code] textadept-curses line wrap

From: Mitchell <m.att.foicica.com>
Date: Fri, 24 Mar 2017 14:15:34 -0400 (EDT)

Hi Carl,

On Thu, 23 Mar 2017, Carl Sturtivant wrote:

> Hello,
>
> What should I put in init.lua to have this turned on by default? And how do I
> toggle it?

In *~/.textadept/properties.lua* put:

   buffer.wrap_mode = buffer.WRAP_WHITESPACE

(*properties.lua* applies to all buffers, while *init.lua* only applies to
the statup one.)

By default the terminal version does not have a keybinding for toggling
wrap mode. Assign one in *~/.textadept/init.lua* to:

   function()
     local toggle = buffer.wrap_mode == 0 and buffer.WRAP_WHITESPACE or 0
     buffer.wrap_mode = toggle
   end

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 Fri 24 Mar 2017 - 14:15:34 EDT

This archive was generated by hypermail 2.2.0 : Sat 25 Mar 2017 - 06:28:33 EDT