-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
many built-in themes do not have a separate highlight color for the primary selection #3842
Comments
I had opened an issue about this a while ago: #1833 |
oh! Sorry, I searched around but didn't find that one. Regardless, that's the complete list of themes with this problem at the current release. |
I've added this as a requirement to #3234 |
For me this is not a problem but a feature. Since all selections are edited at once, there is no "primary" apart from view focus. The default theme deliberately doesn't style it differently. |
It's not always apparent what |
Not a hugely important distinction, but with searching and I also like to know where my cursor will be when I |
not just beginners—it's literally impossible to see which match e.g. suppose you have the following text selected:
and you want to change the first one method would be to select all commas ( but it's impossible to see where the primary cursor is which makes this extremely difficult |
Prior discussion: https://www.reddit.com/r/kakoune/comments/txxv46/the_importance_of_distinguishing_primary_from/ I agree that maybe less distracting would be only coloring differently the primary cursor, not the whole selection. |
Just to add to this: in section 10.1 of the |
I just came across this in the way that @taranlu-houzz suggests, from 10.1 of the tutor. I think it should be quite a clear difference in every theme, personally, as this is such a selection-centric editing experience (I haven't used vi before so this is all new to me). For those interested, these clearly distinguish both primary cursor and primary selection:
These clearly distinguish primary selection, not so much cursor:
I will be using |
A new Helix 23.05 user here. Many hours were wasted because I thought the problem was in my system. Finally I ended up here. I understand that changing the themes might take some time, but for the sake of newcomers who begin with the tutorial straight away, I'd say that's urgent. At least for the 'default' theme. Image for the newcomers in here, that shows how nicely the theme 'ayu_evolve', for example, indicates the primary selection: |
Either it's me or even the default theme doesn't show the difference, I don't understand how it isn't patch yet |
addresses helix-editor/helix#3842 might help with tinted-theming/base16-helix#12 Signed-off-by: Krzysztof Nazarewski <[email protected]>
@manujarvinen Sorry if this is a bit off topic, but could you tell me which font you are using? |
By all means, I like the font very much. It suits Helix very nicely. It's from www.nerdfonts.com -> IosevkaTerm Nerd Font (can't remember the thickness, try to see what you like) |
Are there any theme compatible with macOS |
Another new user here who just wasted a lot of time because of this issue. It's ridiculous that this issue is almost two years old. This is exactly the kind of first impression that will drive people away from giving Helix a fair shot. |
I just figured out now that you're supposed to be able to differentiate these. If you're not fixing this anytime soon, at least add a note in the tutor. |
I agree that this is a common issue for newcomers. If anyone is interested in resolving this issue for themes, I'd suggest submitting PRs so the theme maintainers can review them. In the meantime, I've added this to the wiki: https://github.com/helix-editor/helix/wiki/Troubleshooting#-and--does-not-cycle-the-selections |
I'd be interested in tinkering with this and submitting a pr, but I can't figure out where the default theme is stored. I don't see a default.toml in the runtime/themes/ folder. And find . -name "default.toml" didn't turn anything up in the source repo. Does anyone know where the default there configurations are in the source? |
Its in the root of the repo as |
@Mirko-von-Leipzig It is, thanks. I opened #11608 with my proposed changes but it appears I'm not the first and there are a few open PR's that could address this issue. Not sure what it would take to make a decision here but I did what I could :) |
I'm currently working on porting my theme family across to helix and came across this issue. I'd be happy to create some PRs for other themes if someone can point me in the right direction to find the theme files |
https://github.com/helix-editor/helix/tree/master/runtime/themes |
I've had a look through a lot of the themes mentioned from 2022. Some have been fixed, others have highlights present, albeit some in a form I don't personally think is obvious enough. You also have varying degrees of obviousness depending on whether a user has cursorlines turned on in their config. A good solution to this would probably be some guidance in the docs and maybe a call on theme maintainers to update? I still don't mind chipping away and making modifications to some, but it would also be really good to defer to the original authors, as to do something like this I'd have to take some artistic liberty theme authors might not appreciate. |
Summary
I've been trying to find a theme I like for use in Helix. Not hard—there are many good options—but I've had to decide against a lot of them because they do not have a separate color for the primary selection. (I use multiple selections a lot, so this is a problem for me!) Themes that seem to have this problem:
Reproduction Steps
Load up a big file (I used
/usr/share/dict/words
) and select some lines, then hit a-s to split into multiple lines. Cycle through the themes. I expected that all (or at least most) of the themes would show a difference between the primary and non-primary selections, but many of them do not.https://asciinema.org/a/9gvV6uuz0QKLppxU9hA2aLLbo
Helix log
I've skipped providing this because it is not causing crashes or anything. Please LMK if it would still be helpful.
Platform
macOS
Terminal Emulator
wezterm 20220426-073620-4d09fe1f
Helix Version
helix 22.08.1 (66276ce)
The text was updated successfully, but these errors were encountered: