-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
[WIP] split and join #96156
[WIP] split and join #96156
Conversation
really good work and the issues raised are valid. Ideally the logic can implemented all in
|
If we are going to implement this feature in an extension, the missing APIs are:
|
@rebornix Based on our discussion, I reworked the PR so that we now work directly with lines, i.e. |
Pls merge if you feel that's good enough for now before you rework the cell text buffers. |
@kieferrm thanks, it looks great. I'll fix the conflicts and merge. |
Implements a first draft of split and join of notebook cells.
It only works for (neigboring) code cells. Although there is nothing in the code that should prevent joining a code and a markdown cell
setText
on a markdown cell does not have any affect. For the same reason splitting of markdown cells does not work. Additionally, that a markdown cell is rendered when it loses focus is not what I'd expect when splitting it.Modifying the content of cells is bad. For example, when splitting a cell, we should just be able to delete some content rather than resetting it. Also, we get content as a string of joined lines only to split it again after joining it with other content. Also, I'm not sure that the funtionality even lives at the right layer.