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

relative line numbers? #57

Open
freaya-dev opened this issue Jan 19, 2025 · 6 comments
Open

relative line numbers? #57

freaya-dev opened this issue Jan 19, 2025 · 6 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@freaya-dev
Copy link

So i recently downloaded helix, i liked it, but i wanted vim keybinds, so i got evil helix. And i cant figure out how to get relative line numbers like in vim

Image

@apatterndarkly
Copy link

line-number = "relative" in the editor section of your config.toml should do the trick @Momma-Eltala. Something like:

[editor]
line-number = "relative"

@ArhumMK
Copy link

ArhumMK commented Jan 19, 2025

It would be better if you would refer to Helix's documentation on editor configuration as evil-helix reads from the same config files.

@freaya-dev
Copy link
Author

Thank you, both of you all

@freaya-dev
Copy link
Author

i did notice just now that when ever im in editor mode its no longer relative

@apatterndarkly
Copy link

apatterndarkly commented Jan 20, 2025

If what you mean by editor mode is the same as insert mode, then it looks to me like that's by design. I see this related discussion and that a PR was created but seems to have stalled out. Perhaps you could let your interest be known* on the latter as some others have to help increase the priority.

*Disclaimer: I'm in no way related to this project or the upstream. I just like it a bunch and wanted to help if I could. I don't know if the maintainers have asked for any particular etiquette or protocol for this kind of thing. You may know more than me. In any case, I wish you luck in getting things worked out to your liking.

Edit: There's a more recent feature request about this.

@usagi-flow usagi-flow added the question Further information is requested label Feb 1, 2025
@usagi-flow
Copy link
Owner

Thank you for clarifying and finding the existing PR! I had a brief look at it and I wouldn't be opposed to merging it, while waiting for it to be merged upstream. It looks relatively - no pun intended :) - harmless.

@usagi-flow usagi-flow added the enhancement New feature or request label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants