minimap-autohide

Automatically hide the minimap when you aren't using it.

jayk

88,439

392

0.10.1

MIT

GitHub

This package consumes the following services:

minimap-autohide package

Hide your minimap until you need it.

This package automatically hides the minimap until you need it.

When editing normally, you have the entire window for your editor. As soon as you begin to scroll, the minimap appears and you can interact with it normally.

Written by @JayKuri - If you like it, say Hi!

Minimap autohide animated image

By default the minimap will be hidden when not scrolling, and will slide out from the right when scrolling. You can, however, tweak the appearance. When you are scrolling, the minimap will have a class 'scrolling' added to it. You can therefore override the default by adding an entry to your personal styles.less file.

For example, this style entry restores the original look of the minimap, but causes the minimap to instantly disappear when not scrolling... for a more 'snap-in' effect.

atom-text-editor::shadow {
  atom-text-editor-minimap.scrolling {
    left: 0px;
    display: block;
  }
  atom-text-editor-minimap {
    background: rgba(0,0,0,0.2);
    position: relative;
    display: none;
    left: 0px;
    opacity: 1;
  }
}

Likewise, if you don't like the semi-transparent background, you can override it in your theme:

atom-text-editor-minimap {
  // give us a nice dark-blue background
  background: #000040;
}

Known issues: Does not interact well with 'minimap-on-left' setting. You may, however, be able to set a style in your own styles.less that would allow it to work.