coldnew / linum-relative Goto Github PK
View Code? Open in Web Editor NEWdisplay relative line number in the left margin in emacs
display relative line number in the left margin in emacs
When the code is folded there seems to be an issue where the folding of the lines is ignored. Is it the desired behaviour to not use visual lines.
Thank you for making an excellent and so useful package.
Kyle ๐ป.
Hello, I was wondering what setting should be applied in order to display the real line number of the current line instead of the marker ->
which for me isn't very useful.
Thanks
Hi,
This mode is nice. Now I can effectively use my command with precise argument number. However, linum-relative disables linum if it is toggled. Can you make it appear next to linum, or appear on the right margin?
Hi. Is there any way to freeze the line numbers, so that changing the current line does not change the numbers?
When using Emacs show-paren-mode, when a brace is underlined, also the "0" in relative numbers is underlined
Hi, I want to know if is there some setting I could apply in order to show the current line number instead of just seeing a zero on the linum, for example:
3
2
1
4 This is the current line|
1
2
3
Thanks in advance!
Hi,
I'm using Evil mode and I want to turn on linum-relative when I'm in the normal state, and turn it off wen I'm in the insert state. I'm using linum-relative-toggle
as a hook, but it does not work precisely. Could you please provide linum-relative-on
and linum-relative-off
so I can turn it on/off without ambiguity?
Thank you so much!
Could you submit an update to MELPA, please?
When toggling on/off linum-relative
, it removes user setting for linum-format
. User option should be reserved.
Since linum-relative will have some new feature, it's need to rewrite the README doc
When using visual-line-mode the line numbers reflect the physical lines in the file rather than the logical lines. Any chance of getting support for visual-line-mode? :)
Today I just find out emacs26 (commit: 5df239fc6ffbbb16ea6e5546fbec1508bf2cb4b7
) now support display line numbers natively, which can make line number render quickly on large file.
Should we keep using linum.el
as backend or use emacs 26's line-numbers
functions when feature found?
PS: line-numbers
already shipped relative line number function AFAIK, so maybe we just make linum-relative's function call line-numbers
function and not use the linum.el
?
All other themes I enable have the current line number highlighted and different in color than the other numbers. I looked everywhere for the name of the face so I could customize it in Solarized theme but didn't find it. What is so special about Solarized that it overwrite? Ignore? highlighting the current line number. I would assume the theme has nothing to do with this since it is a linum-relative property?
Hi! Is there a way to show the absolute line number instead of the zero in the current line?
I haven't been to customize the colors set by this plugin, and am a bit of a Emacs newbie so I'm not sure where to begin to look. I managed to change everything else I wanted and tried to change the colors, but couldn't get it to work.
This is how it looks: . I don't want that black background on the current line, but not sure where to change it.
is possible add real line number instead -> 0
Hello,
Pardon my ignorance. How can I add an space between the line number and the code? I tried doing something like the following:
(defvar relative-linum-format-string "%3d ")
but it doesn't work. If you leave an space after the d when in emacs linum, it works, but then I don't get the relative numbers.
Thank you,
Adria
Hello,
I really like this package but I have this issue where if I enable linum-relative sometimes the text will flicker when moving vertically. I found someone else who also had this issue and he had a video of it on youtube: https://www.youtube.com/watch?v=7-V-qXoeZ1w.
I'm packaging linum-relative for GNU Guix. It would be nice to have a new release. There hasn't been one in a long time despite many changes.
Hello,
This is not a linum-relative issue but I could not figure out how to ask you this question. I use nlinum and noticed that you had a nlinum-relative repository. https://github.com/edran/emacs.d/blob/master/lisp/nlinum-relative.el
Just want to check your thoughts on why you still do not have a nlinum-relative repo?
Thanks
Joe
This happens when running functions such as occur
or set-variables
(only the second prompt for the latter).
I tried with a vanilla linum/linum-relative config.
Any clue what happens here?
Hi:
This package looks to be unmaintained but also there is a substitution inside emacs introduced the last year: display-line-numbers with the "relative" value set. It is implemented in the display engine so it is very efficient.
Please, add a comment informing that in the readme in order to assert that new users get the newer/maintained alternative and the old users switch.
Edit: oops, accidentally submitted with no explanation
Using the cyberpunk theme (https://github.com/n3mo/cyberpunk-theme.el) which enlarges org-mode headlines, the relative line numbers will get cut off on any lines using the enlarged font size. Reproduced on emacs 24.3 with -Q except for the cyberpunk theme and linum-relative loaded. Screenshot:
Hi,
I would like to use linum-relative, but there is one issue with it.
When I set linum-format linum-relative stops working.
Without setting format edited text is "glued" with line number.
Hi, would you be ok to add a specific mode to allow users enabling easily linum-relative in helm ?
See emacs-helm/helm#1257
and
https://github.com/emacs-helm/helm/wiki#linum-relative
Thanks.
linum-relative
seems to be showing the relative numbers based on the actual or logical line numbers instead of visual lines.
Eg. from the screenshot, currently we're on the TODO on line 12. The section heading 'Packages' is 27 lines below the current line. However, we can jump to it (using evil) directly using 3j
since it's only 3 "visual" lines away.
Would it be possible to show the visual relative line numbers instead of the actual relative line numbers?
Thanks for a great plugin ๐
The last MELPA Stable release was in 2013. Please release an updated version of linum-relative on MELPA Stable.
It would be a nice-to-have feature if linum-relative could mimic vim's 'hybryd' line numbering. Basically, it's same as relative numbering, but for current line it's absolute number is shown.
I want to use a different offset for negative line numbers but it looks like my value for linum-relative-plusp-offset is being applied to both positive and negative numbers.
Looking at the code, it looks like the abs
call in diff1
is always causing minusp
to return false
in diff
. If you perform the abs
call after performing the minusp
check instead of before and use that value further down for rendering, then that variable should work as intended.
I updated linum-relative today, and whenever I open a new helm window, I get this.
linum-relative: Invalid function: with-helm-buffer
I don't want linum-relative in my helm buffers anyway, is there a way to turn this feature off?
I'm prety new to emacs, could someone tell me how to provide more debug info (if you need it)
I'm using the latest helm on melpa
Helm also updated today (so that might be the issue?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.