Created
August 23, 2012 02:28
-
-
Save dreid/3431511 to your computer and use it in GitHub Desktop.
sublime text 2 plugin for zooming to an original font size.
This file contains hidden or 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
import sublime | |
import sublime_plugin | |
settings = sublime.load_settings('Preferences.sublime-settings') | |
orig_font_size = settings.get('base_font_size', settings.get('font_size')) | |
settings.set('base_font_size', orig_font_size) | |
sublime.save_settings('Preferences.sublime-settings') | |
class ZoomzeroCommand(sublime_plugin.WindowCommand): | |
def run(self): | |
settings.set('font_size', orig_font_size) | |
sublime.save_settings('Preferences.sublime-settings') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment