This is an extension to perform basic cell operations in Pluto notebook files. This can be useful when one wants to modify a notebook without a Pluto server running or even to perform basic operations directly on the file and exploit the auto-reload from file feature of Pluto.
All the commands operate either on or based on the cell where the cursor is currently active. The active cell is parsed both when the crusor is inside the cell code as well as when it is on the list of Cell orders at the bottom of the notebook. The following commands/functionalities are currently supported:
Add a cell
The commands Pluto: Add a Cell After and Pluto: Add a Cell Before create a new empty cell and position it either after or before the currently active cell:
Delete a cell
The command Pluto: Delete Cell deletes the currently active cell from the notebook:
Toggle Cell Code Hidden Status
The commands Pluto: Hide Cell Code, Pluto: Show Cell Code and Pluto: Toggle Cell Code Hidden can be used to change the hidden status of the active cell code.
This functionality does not currently work with auto-reload from file in Pluto (see https://github.com/fonsp/Pluto.jl/issues/2424)
Move between Cell Code and Cell Order
The command Pluto: Go To Cell Code/Order moves both the cursor and the editor view between the code and the cell order for the currently active cell.