Adding or deleting an item to a list in blockcode.
When I add an item to a list it always adds at end of list.
Describe the solution you'd like
If there is a selected cell, I'd like it to add an empty cell immediately before the selection.
If there is a selected cell and it is deleted then it should be removed. And the next cell becomes selected.
Describe alternatives you've considered
- If you added it immediately after the selection then you could not get to the very first cell location.
- I'd like the delete button to remove the selected cell. Then I think the next cell should become selected unless it is the last cell in which case it becomes unselected.
Additional context
So I am looking at the red assignment of the list at line 13 in the python code. In this example 60 has been selected.
- If I pressed '>' then I'd like a space between 40 and 60.
- If I pressed '<' then I'd like the cell with 60 to be removed and cell with 80 to shift left and be selected.

Adding or deleting an item to a list in blockcode.
When I add an item to a list it always adds at end of list.
Describe the solution you'd like
If there is a selected cell, I'd like it to add an empty cell immediately before the selection.
If there is a selected cell and it is deleted then it should be removed. And the next cell becomes selected.
Describe alternatives you've considered
Additional context
So I am looking at the red assignment of the list at line 13 in the python code. In this example 60 has been selected.