Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add actions for manipulating notebook cells #422

Open
18 tasks
pokey opened this issue Jan 4, 2022 · 0 comments
Open
18 tasks

Add actions for manipulating notebook cells #422

pokey opened this issue Jan 4, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@pokey
Copy link
Member

pokey commented Jan 4, 2022

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.

  • Handle ranges of cells as well as single cells and lists of cells

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

@pokey pokey added the enhancement New feature or request label Jan 4, 2022
@pokey pokey added this to the On deck milestone Jan 16, 2022
@pokey pokey added the help wanted Extra attention is needed label Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant