How to display a cell at the cursor position during cell selection in 'Command Mode'?
- Dominant language
- Jupyter Notebook
- Stars
- 13.3k
- Forks
- 5.8k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 7
Description
This is a general UI problem when a cell contains too many lines of code to display on one screen, .
For example, assume I'm on line 100 in cell A in 'Edit Mode'. I press `ESC` to enable 'Command Mode', and 'J' to select the next cell, and then 'K' to select back to cell A (still in 'Command Mode'). The cell A is displayed from the 1st line, but I hope it's from line 100 where I last edited it.
If I press 'ENTER' to enable 'Edit Mode', the cursor is located to line 100 correctly, however, in 'Command Mode' how to display the cell at where I edited it? Is there any workaround (extension widget) for this?
Contributor guide
Research direction
Reproduce the described transition between Edit Mode and Command Mode while selecting cells, especially returning to a long cell after moving away and back. Start by tracing the cell-selection and rendering entry points involved in Command Mode; done means the selected cell displays near the last edited cursor position without preventing normal mode switching.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100