Created
December 12, 2010 19:45
-
-
Save rgieseke/738270 to your computer and use it in GitHub Desktop.
Keyboard short cuts for zooming in Textadept
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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