Skip to content

Instantly share code, notes, and snippets.

@eugene-kim
Created October 26, 2017 16:31
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eugene-kim/18efb5fa5aadab26eb0fa4da4fc1f606 to your computer and use it in GitHub Desktop.
Save eugene-kim/18efb5fa5aadab26eb0fa4da4fc1f606 to your computer and use it in GitHub Desktop.
Hide minimap in Sublime Text 3 by default.
# -*- 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)
@williampratt
Copy link

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!

@harshsharma-cb
Copy link

Thanks!
This is a saviour.

@P2Beauchene
Copy link

Nice, thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment