Re: [textadept] zoom not working for me

From: Robert <ro....at.web.de>
Date: Sun, 12 Dec 2010 20:47:33 +0100

Hi Leo,

On Sun, Dec 12, 2010 at 3:56 PM, Leo <slonik....at.gmail.com> wrote:
> Hi List,
> I am a novice textadept user. I am using version 3.5 on Ubuntu-9.4.
> Zoom commands  "Ctrl +", "Ctrl -", "Ctrl 0" have no visible effects. I
> tried it in single and split buffer modes. No luck. My goal is to
> change font size on a fly.
>
> Any help is greatly appreciated.
> --Leo--
>
you could add

keys['c+'] = {function()
  local buffer = buffer
  buffer.zoom = buffer.zoom + 1
  local c = _SCINTILLA.constants
  buffer.margin_width_n[0] = 4 * buffer:text_width(c.STYLE_LINENUMBER, "9")
end
}

keys['c-'] = {function()
  local buffer = buffer
  buffer.zoom = buffer.zoom - 1
  local c = _SCINTILLA.constants
  buffer.margin_width_n[0] = 4 * buffer:text_width(c.STYLE_LINENUMBER, "9")
end
}

to your init.lua.

Holding Ctrl and scrolling works as well.

Robert
Received on Sun 12 Dec 2010 - 14:47:33 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:56:41 EST