att / rcloud

Collaborative data analysis and visualization
http://rcloud.social
MIT License
431 stars 141 forks source link

Dragging cell, changing titles #1261

Open prattatx opened 9 years ago

prattatx commented 9 years ago

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: image

Dragging Cell 2 produces: image

gordonwoodhull commented 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.

gordonwoodhull commented 9 years ago

Related: #1219 force cell renumbering

gordonwoodhull commented 9 years ago

We could also consider just showing numbers which have nothing to do with what's stored in the gist.