Skip to content

Instantly share code, notes, and snippets.

@rgieseke
Created December 12, 2010 19:45
Show Gist options
  • 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