atom-minimap / minimap

A preview of the full source code.
https://atom.io/packages/minimap
MIT License
642 stars 128 forks source link

Transparency / resizability? #347

Open davidawad opened 9 years ago

davidawad commented 9 years ago

Hi! Is it possible for the map to be transparent? Or resizable? When splitting panes right and left you end up losing a lot of screen real estate.

Please let me know. Thanks!

abe33 commented 9 years ago

Hi, actually minimap is transparent, but you can make it opaque using CSS. But maybe you're talking about making it overlay above the editor's content? In that case, take a look at the absolute mode setting in the minimap setting view.

As for resizing, there's two modes here:

I haven't considered making the minimap dynamically resizable using a drag gesture, it'ld probably would cost but I'll take a look at wha it implies.

aaronmoodie commented 9 years ago

hey @abe33, is there a way to extend the theme's css background color for minimap? As opposed to explicitly setting it to a value, which will need to be changed if the theme is changed.

abe33 commented 9 years ago

@aaronmoodie You mean doing something like this?

atom-text-editor::shadow atom-text-editor-minimap {
  background: @syntax-background-color;
}
przem-ko commented 8 years ago

Please, also consider an option to have a minimap auto-resized vertically, so it would eliminate a need to scroll it. This is how minimap works in Kate editor, and it makes the map a really fast tool for jumping between various places in large source files, despite it being less accurate that way.