Created
October 26, 2017 16:31
-
-
Save eugene-kim/18efb5fa5aadab26eb0fa4da4fc1f606 to your computer and use it in GitHub Desktop.
Hide minimap in Sublime Text 3 by default.
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
# -*- encoding: utf-8 -*- | |
# Save it as minimap_setting.py in the User directory (in Preferences -> Browse Packages). | |
# Then, you just add "show_minimap": false in your settings and you're good to go! | |
import sublime | |
import sublime_plugin | |
class MinimapSetting(sublime_plugin.EventListener): | |
def on_activated(self, view): | |
show_minimap = view.settings().get('show_minimap') | |
if show_minimap: | |
view.window().set_minimap_visible(True) | |
elif show_minimap is not None: | |
view.window().set_minimap_visible(False) |
Thanks!
This is a saviour.
Nice, thanks a lot.
Awesome!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sweet! Thanks. Worked great. I am still baffled this isn't a setting included with sublime. I hate that minimap. I see zero use for it!