Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Refactor highlights in minimap #664

Open
Redsandro opened this issue Apr 23, 2018 · 1 comment
Open

[Feature Request] Refactor highlights in minimap #664

Redsandro opened this issue Apr 23, 2018 · 1 comment

Comments

@Redsandro
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants