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

helix: primary cursor should be differentiated #688

Open
tylernku opened this issue Dec 19, 2024 · 1 comment
Open

helix: primary cursor should be differentiated #688

tylernku opened this issue Dec 19, 2024 · 1 comment
Labels
bug Something isn't working properly

Comments

@tylernku
Copy link

tylernku commented Dec 19, 2024

In helix, you can have multiple cursors operating on different selections in a file. You can cycle between them and remove selections. At any one time, one of the selections is considered to be primary and you can use keybindings to keep or dismiss it.

For example:

Dracula_at_night
(Dracula_at_night)

Ayu_dark
(Ayu_dark)

Both these themes give the ability to differentiate between primary and secondary selections (with varying subtlety). They both rely on ui.cursor and ui.cursor.primary, and ui.selection and ui.selection.primary being visually distinct.

In stylix's helix config ui.cursor is defined and ui.cursor.primary is not. Also, ui.selection and ui.selection.primary are both defined as base02.

Here's what that looks like with the stylix config:

Stylix
(Stylix)

@trueNAHO
Copy link
Collaborator

Thanks for this excellent bug report!

Currently, Stylix delegates Helix' theming to https://github.com/tinted-theming/base16-helix:

theme = config.lib.stylix.colors {
templateRepo = config.lib.stylix.templates.base16-helix;
};

Consider patching the upstream theme and then submitting a Stylix PR to update the base16-helix input.

@trueNAHO trueNAHO added the bug Something isn't working properly label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working properly
Projects
None yet
Development

No branches or pull requests

2 participants