Open prattatx opened 9 years ago
"It's a feature." It just wasn't visible before.
The idea here is to minimize the number of changes, to make the diffs small and comprehensible. We are tracking each cell as its own file within the gist/repo. So when cells are inserted/moved/deleted, we didn't want to change all of the cells down to the end of the notebook.
But it's worth considering if having contiguous cell numbers is more important than minimal diffs.
Related: #1219 force cell renumbering
We could also consider just showing numbers which have nothing to do with what's stored in the gist.
Dragging a cell "down" the list of cells changes all cell titles following the dragged cell. In the following example, "Cell 2" is dragged down past "Cell 3" and is renamed to "Cell 4". "Cell 3" remains the same, but "Cell 4" and "Cell 5" are renamed "Cell 5" and "Cell 6". The resultant list has "Cell 1" through 6, but no "Cell 2". Some of the Cell titles remain unchanged, but others do not. To make it more predictable to users, we should make all cell titles sequential.
Given:
Dragging Cell 2 produces: