Skip to content

Instantly share code, notes, and snippets.

@rgieseke
Created December 12, 2010 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgieseke/738270 to your computer and use it in GitHub Desktop.
Save rgieseke/738270 to your computer and use it in GitHub Desktop.
Keyboard short cuts for zooming in Textadept
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment