marimo icon indicating copy to clipboard operation
marimo copied to clipboard

Add "move cell to section" feature

Open anjiro opened this issue 7 months ago • 2 comments

Description

Rearranging cells in a large notebook is rather difficult, especially if there is a lot of complex output (e.g., DataFrames or plots) which slow down dragging cells around. It would be nice to have an easier way of moving things.

Suggested solution

In addition to the "Move Cell Up/Down" and "Send Cell to Top/Bottom" menu items, being able to move a cell to a Markdown-headed section would be very convenient.

Alternative

No response

Additional context

No response

anjiro avatar Apr 08 '25 07:04 anjiro

When I need to move a lot of cells around, I end up doing it in a text editor instead of the marimo editor. Thought that does require shutting down your notebook first.

akshayka avatar Apr 08 '25 15:04 akshayka

Yeah, I've thought of that, but in cases where I have a lot of cells I need to navigate around, then I really don't want to shut down and have to re-run (often it's lots of plots which take a good while to generate and aren't amenable to memoizing).

anjiro avatar Apr 08 '25 18:04 anjiro