Re: [code] [textadept] to switch show of line numbering

From: Mitchell <m.att.foicica.com>
Date: Fri, 30 Aug 2013 09:20:05 -0400 (Eastern Daylight Time)

Hi,

On Fri, 30 Aug 2013, A.M. Genaev wrote:

> Hi,
>
> Is there a command to switch show of line numbering?

Do you mean turn it on or off? In the command entry you can type:

   buffer.margin_width_n[0] = 0

You can assign a key binding to toggle in your ~/.textadept/init.lua:

   local margin_width = buffer.margin_width_n[0]
   keys['c_'] = function()
     if buffer.margin_width_n[0] > 0 then
       buffer.margin_width_n[0] = 0
     else
       buffer.margin_width_n[0] = margin_width
     end
   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 30 Aug 2013 - 09:20:05 EDT

This archive was generated by hypermail 2.2.0 : Sat 31 Aug 2013 - 06:33:15 EDT