-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 #5958
Comments
This was the first thing I looked for after installing Zed an enabling |
+1 this is key to fast code navigation. |
It'd be really useful in vim mode |
Is it possible to display both |
Vim mode without relative line numbers is like pizza without cheese. |
- Add relative_line_mode - vim change for wrapped lines Release Notes: - Add a `relative_line_numbers` setting ([#988](https://github.com/zed-industries/community/issues/998)).
This feature has been merged into main and should be available in v0.102.0. https://twitter.com/zeddotdev/status/1695159901411070150?s=20 |
@DeVoresyah |
already put on line |
nevermind, it works after I put on |
is there any option that tells the current line if the relative line numbers is true. i would like to know current line along with relative line numbers |
@auspy that seems to be the default at least as of now? |
Is there an option to make this togglable? In VS (though heavily plugin-ned) I have CMD+L cycle from usual to vim and vice-versa. Very useful when debugging C with stackframes |
is there any way to turn off relative numbering when in insert mode and toggling it back on when in normal mode ? |
This is exactly what I'm looking for as well, it adds another visual indicator of the mode you are in which is nice. |
+1 for this. In NORMAL mode I want to move relative to the current line. |
I believe the use case of relative line numbers in insert mode only is mentioned in the documentation, but it doesn't seem to do anything. |
@jacobzim-stl it's in the alpha version for now. Will be in the next release most likely. |
Yep!! It's not working yet |
Great to hear, was going to say it's not working for me either |
@dnjohnson Yes, we were only talking about the "toggle relative line numbers" feature. See the docs link in my first comment |
Yeah I'm going to level with you, I didn't read through the full thread. Saw the first comment and the last comment and inferred the rest. That's on me. |
Hmm, well it would be nice to have an option/feature where language settings can be configured differently from vim mode. |
Mine was fixed today, thanks team! |
Just to be sure, |
To answer my own question, it's under the "vim_mode": true,
"ui_font_size": 16,
"buffer_font_size": 16,
"relative_line_numbers": true,
"vim": {
"toggle_relative_line_numbers": true
}, |
Check for existing issues
Describe the feature
Show the line number relative to the current line (where the cursor is). It is usually helpful in combination with Vim mode, to jump to a specific line using motion keys (e.g., h-j-k-l).
Vim has it built-in (https://vimhelp.org/options.txt.html#%27relativenumber%27). Visual Studio Code also has it built-in using
editor.lineNumbers
.If applicable, add mockups / screenshots to help present your vision of the feature
The text was updated successfully, but these errors were encountered: