Skip to content

Position to paste cells in ctrl-v way #155

@li-xin-yi

Description

@li-xin-yi

It's hard to implement a paste-button in the right-click menu because modern browsers restrict the read-access to system clipboard unless user explicitly does that. I tried Jupyterlab/Jupyter notebook/Colab/Deepnote, none of them implements such a paste button across pages.

image

( A hack way (custom web MIME to serialize pod data) can be used here if insisted)

ctrl-v way is much easier for me to implement, and faster for users to operate. But different from those products above, which can simply appended the pasted cell to the end of the doc or cursor in 1-D space, we need a much cleared 2-D position to put the pasted cell by default, which one should we apply?

  • the current center of the canvas
  • last clicked position on the pane
  • below/beside the copied position (not applicable for pods copied from other pages)
  • others

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions