We currently have a "cell" scope type, but it only supports the "pour" action. For example, you can say "pour cell" and "pour cell air", but not "swap cell air with bat", etc.
Actions to support
Implementation
We should be able to implement some of them by simply selecting the cell and then running a notebook command. VSCode has lots of notebook commands; try saying "please notebook" with a notebook open.
Other commands will take a bit more care for example move and bring. We should be able todo these by eg selecting one or more cells and repeating a move-downwards command multiple times
Could possibly just use the CommandAction class, though might need to tweak to support multi-cell selection. It's worth checking though for each of the given actions whether there is a vscode action which accepts a cell as an argument, tho this seems quite unlikely
Helpful links
We currently have a "cell" scope type, but it only supports the "pour" action. For example, you can say "pour cell" and "pour cell air", but not "swap cell air with bat", etc.
Actions to support
"bring""move""swap""chuck""pour""drink""clear""copy""carve""paste""clone""clone up""fold""unfold""center""drop"?"float"?Implementation
We should be able to implement some of them by simply selecting the cell and then running a notebook command. VSCode has lots of notebook commands; try saying "please notebook" with a notebook open.
Other commands will take a bit more care for example move and bring. We should be able todo these by eg selecting one or more cells and repeating a move-downwards command multiple times
Could possibly just use the CommandAction class, though might need to tweak to support multi-cell selection. It's worth checking though for each of the given actions whether there is a vscode action which accepts a cell as an argument, tho this seems quite unlikely
Helpful links
focusNotebookCellfunction has examples of getting notebook cell from editor and manipulating notebook selections at cell levelEditNewhas an example of overriding action behaviour for notebook cell target