magma-nvim icon indicating copy to clipboard operation
magma-nvim copied to clipboard

[Feature Request] Add a command to reevaluate all cells

Open Akulen opened this issue 3 years ago • 1 comments

Currently, when I load a magma save, I have to manually reevaluate all cells in order to get my python environment back to where it was. I think it would be convenient to have a command MagmaReevaluateAll that would loop through all cells, most likely in document order (or perharps, as an option, in execution_count order, and reevaluate each one, waiting for it to be finished before going to the next one.

~Also, it feels related, but it would be nice to have a way to jump to the next cell, or even to cell number n~

Akulen avatar Dec 09 '21 14:12 Akulen

Currently, when I load a magma save, I have to manually reevaluate all cells in order to get my python environment back to where it was. I think it would be convenient to have a command MagmaReevaluateAll that would loop through all cells, most likely in document order (or perharps, as an option, in execution_count order, and reevaluate each one, waiting for it to be finished before going to the next one.

That seems like a good idea. I've got a small refactor which I need to finish; after it's done, this should be reasonably simple.

Also, it feels related, but it would be nice to have a way to jump to the next cell, or even to cell number n

Also a good idea, but unrelated. It's probably best to have that as a separate issue.

dccsillag avatar Dec 09 '21 14:12 dccsillag