-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 number #15436
Comments
Could you please add a screenshot and specify in which context you would like the one numbers to appear? |
I think this ought to be transferred to the jupyterlab issue list - (@fcollonval the triage rights changed so now they only work on the jupyterlab repo - meaning I cannot actually do that) @wanghankun you may also want to ask this on one of the jupyterlab_vim repos. Unfortunately I don't think there is any ready to go codemirror setting for this. Someone will need to make an extension that does this or add this to the jupyterlab_vim extension. A technique for getting relative line numbers can be found here codemirror/codemirror5#4116 |
Is there relative line numbering in jupyter notebook (like that in vim)? |
I'm closing this one as it is not related to this repository (i.e. the git extension). XRef jupyterlab core related issue: #6718 |
This has also come up in vim support for the notebook. See discussion #9068 (comment) essentially the answer is that at the moment this will either require a separate extension or be perhaps be incorporated in https://github.com/ianhi/jupyterlab-vimrc |
(edit: wow posted at nearly same time - didn't mean to double up) |
Wow, I've been using vim for more than a decade now and I've never seen that. So many weird corners to that ancient tool... @quantum-booty Anyway, this feature has nothing to do with jupyterlab-git in the slightest. If you really want it, you should open an issue on the main jupyterlab repo |
Yes! we need that in jupyter. Relative numbering is very convenient to use in Vim mode! |
Any updates here? |
One can create a JupyterLab extension adding a CM6 extension like https://github.com/jsjoeio/codemirror-line-numbers-relative to achieve this effect. |
Is it possible to add relative line numbers in Jupyter lab? I use the vim plugin and navigating would be a lot easier if I could see the relative line numbers.
The text was updated successfully, but these errors were encountered: