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

New Option for Helix Text Editor: programs.helix.extraConfig #6513

Open
nouritsu opened this issue Feb 22, 2025 · 2 comments · May be fixed by #6575
Open

New Option for Helix Text Editor: programs.helix.extraConfig #6513

nouritsu opened this issue Feb 22, 2025 · 2 comments · May be fixed by #6575
Assignees

Comments

@nouritsu
Copy link

Description

The title states it pretty clearly, a new option called programs.helix.extraConfig should be introduced.

Why?

Helix relies on the order of keys in the config file for rendering minor modes and langauge support setup.

For instance, in my (WIP) configuration I have

programs.helix.settings.keys.normal.p = { # Obviously not written like this
  p = "paste_after";
  P = "paste_clipboard_after";
  b = "paste_before";
  B = "paste_clipboard_before";
  r = "replace_with_yanked";
  R = "replace_selections_with_clipboard";
};

Which should produce a minor mode p with sub commands ordered p, P, b, B, r, R. However, since keys are sorted alphabetically, it produces the much less readable
Image

Solution

An extraConfig option would allow users append lines to the config keeping order in mind.

@nouritsu
Copy link
Author

I would like to make a PR for this as my first contribution to the Nix project :)

@nouritsu
Copy link
Author

@nouritsu nouritsu linked a pull request Mar 6, 2025 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants