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

Viper support #115

Closed
ZharMeny opened this issue Aug 6, 2024 · 5 comments
Closed

Viper support #115

ZharMeny opened this issue Aug 6, 2024 · 5 comments

Comments

@ZharMeny
Copy link

ZharMeny commented Aug 6, 2024

Built-in viper-mode changes how input text in the minibuffer looks depending on the current input mode, which looks fine with modus-operandi, but quite jarring with modus-vivendi (light background with dark text, while the rest of the screen is dark background with light text), there are also other faces that could benefit from some tweaks.
Screenshot from 2024-08-06 01-03-48

protesilaos added a commit that referenced this issue Aug 6, 2024
Thanks to ZharMeny for bringing this matter to my attention in issue
115: <#115>.
@protesilaos
Copy link
Owner

Thank you @ZharMeny! I just added preliminary support for it. Unfortunately, they do not let themes configure the colour of the cursor. The green they use is not optimal for our purposes.

Anyway, please take a look. My intuition was to remove those coloured backgrounds from the minibuffer. They feel out-of-place there as they can be mistaken for the currently selected completion candidate.

@ZharMeny
Copy link
Author

ZharMeny commented Aug 6, 2024

Unfortunately, they do not let themes configure the colour of the cursor.

They seem to expose the configurability through viper-*-cursor-color variables, anything on that front?

My intuition was to remove those coloured backgrounds from the minibuffer. They feel out-of-place there as they can be mistaken for the currently selected completion candidate.

They indicate what state Viper is currently in (which is normally indicated in the mode-line, that the minibuffer lacks), and removing them may lead to confusion between Emacs state and Viper state. This can be avoided by setting viper-emacs-state-cursor-color to some distinct colour; the definition of that variable has "Magenta" commented out.

@protesilaos
Copy link
Owner

protesilaos commented Aug 6, 2024 via email

@ZharMeny
Copy link
Author

ZharMeny commented Aug 7, 2024

This means that if we change to another Modus theme, we end up with an awkward colour again.
You can try this by evaluating the following:
[...]
Then switch to normal mode to see the old default cursor colour. In my
case, I went from a dark theme to a light one and now I cannot see the
cursor.

This is quite unfortunate, I don't think it would be easy to fix that without modifying Viper itself. Thank you, anyways.

protesilaos added a commit that referenced this issue Aug 11, 2024
Thanks to ZharMeny for the feedback in issue 115:
<#115>.
@protesilaos
Copy link
Owner

I forgot to push the changes the other day. Did it now. Thanks!

About the issue with the default cursor, I think it needs to be reported on the Emacs bug tracker. Since you are using viper, do you want to do it? You can add my email in CC: [email protected].

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

No branches or pull requests

2 participants