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

Evaluation indicators too subtle? #2748

Closed
practicalli-johnny opened this issue Nov 15, 2019 · 12 comments
Closed

Evaluation indicators too subtle? #2748

practicalli-johnny opened this issue Nov 15, 2019 · 12 comments
Labels
enhancement good first issue A simple tasks suitable for first-time contributors

Comments

@practicalli-johnny
Copy link
Contributor

The evaluation indicators in the fringe do not stand out very clearly and many people are unaware of this very useful feedback because they do not notice them.

I have found the evaluation indicators in the fringe particularly difficult to spot using either of the Spacemacs themes. They are almost invisible on the spacemacs-light theme

Currently, lightgreen is used with light themes and darkgreen is used for dark themes. Could these values be swapped? That may make the indicators more obvious.

https://github.com/clojure-emacs/cider/blob/master/cider-overlays.el#L132

I would be happy to test out alternatives if there is a way to set the foreground colour, preferably setting that in the init.el or .spacemacs file than creating a fork of the CIDER package.

@practicalli-johnny
Copy link
Contributor Author

Using helm-faces, selecting cider-fringe-good-face and clicking customize button seems a good way to experiment, as colours can be applied immediately.

With spacemacs-light and spacemacs-dark themes, the following stand out more.

LimeGreen #32cd32 works well on a dark background
DarkGreen #006400 works well on a light background

@dpsutton
Copy link
Contributor

can you throw up some screenshots? ideally with light and dark modes?

@practicalli-johnny
Copy link
Contributor Author

Tested on the following themes with positive results, although light themes still seem a little faint
spacemacs-dark, spacemacs-light, adwaita, dichromancy, leuven, whiteboard.

Will add some screenshots of the changes soon. In the mean time you can see how faint the existing colour is in this video https://youtu.be/o4Q-K3lzBRY?t=2132

Thank you.

@practicalli-johnny
Copy link
Contributor Author

practicalli-johnny commented Nov 15, 2019

Spacemacs light and dark themes with suggested values for fringes (click on the pictures, as it seems GitHub cuts the edges off for the previews)

spacemacs-dark-evaluation-indicators
spacemacs-light-evaluation-indicators

@practicalli-johnny
Copy link
Contributor Author

An alternative would be to use a solid bar as a marker, or thicker lines, rather than very thin lines which blend into the background more readily.

@bbatsov
Copy link
Member

bbatsov commented Nov 16, 2019

How would this look?

Generally we wanted this to be something subtle and non-intrusive when the feature was introduced. I'm thinking that probably we never documented it anywhere, so I doubt that many people ever realized what those markers are about. :-)

@practicalli-johnny
Copy link
Contributor Author

practicalli-johnny commented Nov 16, 2019 via email

@jcaw
Copy link

jcaw commented Nov 18, 2019

I've opened a PR with screenshots at #2751

@practicalli-johnny
Copy link
Contributor Author

One final point of note about the Fringe indicators. With Emacs version 26 onwards, the position of the line numbers and the fringe have swapped.

Emacs 26 now uses native line numbers, meaning the line numbers are now part of the main text area instead of being in the margin. This means the evaluation indicators are much further way from the code.

Before Emacs 26, the fringe markers were right next to the opening paren of the evaluated code and so a little easier to notice. Now they are further away from the code, they are much harder to spot in their original colour and design.

Thank you.

@bbatsov bbatsov added enhancement good first issue A simple tasks suitable for first-time contributors labels Feb 22, 2020
@practicalli-johnny
Copy link
Contributor Author

The PR mentioned in this request seems to have been abandoned. If the approach in that PR is acceptable, I can raise a new PR and fix the issues mentioned.

However, one issue raised was to have a unique fringe marker. I have not been able to find the code that defines the current marker, so haven't been able to experiment. Only the solid like really stands out for me so far, especially with the fringe moved to the left of the line numbers.

Another option would be to have the fringe highlighted for every line of the evaluated expression, rather than just the first line. Again, I looked at the code for a while in cider-overlays.el but didn't understand how the current fringe is put at the start of the expression, as the code only talks about end.

@bbatsov
Copy link
Member

bbatsov commented Jul 8, 2020

@jr0cket Feel free to take this over.

However, one issue raised was to have a unique fringe marker. I have not been able to find the code that defines the current marker, so haven't been able to experiment. Only the solid like really stands out for me so far, especially with the fringe moved to the left of the line numbers.

I think all such code is in cider-overlays.el.

Another option would be to have the fringe highlighted for every line of the evaluated expression, rather than just the first line. Again, I looked at the code for a while in cider-overlays.el but didn't understand how the current fringe is put at the start of the expression, as the code only talks about end.

Probably that'd be a bit too much, as the fringe will glow like a Xmas tree in this case.

@practicalli-johnny
Copy link
Contributor Author

Closing as I no longer find this feature useful. The change in Emacs line numbers puts this marker too far away from the code to be noticeable even if a more bolder icon is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good first issue A simple tasks suitable for first-time contributors
Projects
None yet
4 participants