36

Is there a setting to hide the minimap by default?

It's inconvenient to View > Hide Minimap for every window I open.

mreq
  • 6,414
  • 4
  • 37
  • 57
  • @alldani I'm using `"hide_minimap": true,` on ST3 – mreq Dec 21 '16 at 17:16
  • Actually, try both. See my [Preferences](https://github.com/mreq/dotfiles/blob/master/subl/Packages/User/Preferences.sublime-settings). – mreq Dec 21 '16 at 18:11

3 Answers3

43

You can hide the minimap by default by adding

 "show_minimap": false

to your User Settings file (Preferences > Settings - User)

Michal Mau
  • 1,631
  • 2
  • 19
  • 18
15

You can acces the "View : Toggle Minimap" command via the command palette (Command + Maj + P on mac os) + Enter

Or maybe defining a macro that you can execute when opening a file.

floppy12
  • 1,045
  • 6
  • 12
  • Do you know how to register the macro to execute when opening a file? – spelufo Feb 14 '15 at 11:55
  • From the official documentation : http://docs.sublimetext.info/en/latest/extensibility/macros.html. There are steps to record a macro, save it to a file and bind it to some key combination. Given that you should be able to write a script that opens your file and launches your macro. – floppy12 Feb 16 '15 at 10:29
  • OK, so you meant that opening the file is part of the macro. – spelufo Feb 16 '15 at 11:43
  • Unfortunately this won't work since the only command available is to toggle_minimap, not to hide. Same happens for the menu. [This plugin](https://github.com/pcorey/sublime-hide-menu/blob/master/sublime-hide-menu.py) toggles the menu on startup, which hides it unless you have another sublime window open. There should be a show and a hide command for every toggle command, but that is not the case. If someone figures out how to check if the minimap/menu is showing, we can fake show/hide with toggle, but I haven't found that either. – spelufo Feb 16 '15 at 11:47
  • @Jorge Bucaran Ctrl + shift + P on windows – Yash Gupta Apr 10 '15 at 10:42
  • @YashGupta Thanks. I still don't understand what is `Maj` though. Is that correctly spelled? – Jorge Bucaran Apr 10 '15 at 11:57
  • 1
    Yeah it is...`majuscule` (french?) meaning `capital` – Yash Gupta Apr 11 '15 at 05:42
10

For Ubuntu 12.04 Sublime 2221, adding

"hide_minimap": true

to your User Settings file (Preferences > Settings - User)

cfreire
  • 101
  • 1
  • 2