minimap icon indicating copy to clipboard operation
minimap copied to clipboard

[Feature Request] Refactor highlights in minimap

Open Redsandro opened this issue 6 years ago • 1 comments

One of my favorite Atom features is that it will mark read- and write occurances of variables and properties. This is supported out of the box. No plugin required.

Depending on what distro you are using, this is included in the styles by default. Other distros have this disabled. I don't know why, it's a very simple powerful visual aid.

// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow {
  // Read
  .refactor-ref .region {
    background-color: rgba(0, 132, 0, 0.4);
    border-bottom: 2px solid green;
  }
  // Write
  .refactor-mut .region {
    background-color: rgba(192, 0, 0, 0.4);
    border-bottom: 2px solid red;
  }
  // New
  .refactor-decl .region {
    background-color: rgba(132, 132, 0, 0.4);
    border-bottom: 2px solid orange;
  }
}

Result:

image

As you can see, these are not visible in the minimap.

Redsandro avatar Apr 23 '18 14:04 Redsandro

Still looking for a solution. @abe33 do you have an idea how to incorporate those style highlights into minimap?

Redsandro avatar Mar 30 '20 12:03 Redsandro