Skip to content

Atom package to automatically hide the mini-map when you aren't using it.

License

Notifications You must be signed in to change notification settings

saidmoya12/minimap-autohide

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Atom package to automatically hide the mini-map when you aren't using it.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 78.0%
  • CSS 22.0%