Last active
August 14, 2021 17:34
-
-
Save math2001/ca8f71e38ad12ff157b34d5425d50ec7 to your computer and use it in GitHub Desktop.
A plugin to hide the minimap using a setting on sublime text.
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
# -*- encoding: utf-8 -*- | |
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem is that because hiding/showing the minimap is a window command, it affects every file in the window.