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

Copy paste entire cells #399

Closed
fonsp opened this issue Sep 9, 2020 · 1 comment · Fixed by #466
Closed

Copy paste entire cells #399

fonsp opened this issue Sep 9, 2020 · 1 comment · Fixed by #466
Labels
almost closed enhancement New feature or request frontend Concerning the HTML editor

Comments

@fonsp
Copy link
Owner

fonsp commented Sep 9, 2020

@ekzhang

Right now you can select multiple/single cells, but you can't copy paste them:

selectcells

It needs to work among different notebooks! And if possible, different notebooks from different sessions (e.g. one on binder, one running locally).

Maybe you could think about the contents of the clipboard? Some options:

  1. It doesn't matter, you put the data in localStorage. But then it only works within the same session
  2. The copy data is exactly like it is in the file (i.e. # |==\ncode\n\n ish). And when you paste onto the page it recognizes that format (and generates new cell IDs to avoid duplicates). This is cool, because people often post notebooks in that format on github.
  3. The copy data also contains formatted output? Like what happens right now if you text-select and copy+paste to Google Docs.

Another thing: for this you would want to place a superbig text cursor after a cell or between two cells, before you hit Ctrl+V. I think this could be really cool, if you also allow text input to create a new cell.

@fonsp
Copy link
Owner Author

fonsp commented Sep 9, 2020

Also, because we have a reactive notebook, it would be nice if Ctrl+X would not immediately delete the cells, but wait for you to paste it, and then move instead. Just like in excel, or in the windows file manager. This prevents two reactive runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
almost closed enhancement New feature or request frontend Concerning the HTML editor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant