-
Notifications
You must be signed in to change notification settings - Fork 350
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
Code Snippet drag and drop feature #1043
Code Snippet drag and drop feature #1043
Conversation
Thanks for making a pull request to Elyra! To try out this branch on binder, follow this link: |
Add the ability to search/filter by tags to the metadata explorer. Co-authored-by: Alex Bozarth <ajbozart@us.ibm.com> Co-authored-by: Ai-Vy Dang <aivyndang@gmail.com> Co-authored-by: Jay Ahn <aju960219@gmail.com> Co-authored-by: Karla Spuldaro <karla.spuldaro@ibm.com> Co-authored-by: Kiran Pinnipati <kpinnipati@gmail.com>
@marthacryan I think that is a default notebook cell behaviour on a drag move event. When you select any cell and start shifting its position, the blue bar is only displayed if you intend to move it to the top or between cells. I will do some more investigation to check if that can be overridden on our side. |
Another thought - could markdown snippets automatically be added to notebooks as "markdown cells" rather than "code cells"? |
Also - (this can definitely be in another PR because I think it's not a blocker) maybe it'd be nice to be able to drop snippets into an existing cell if you're hovering over that cell - and it could drop the text wherever your cursor is. (And you could still add them as cells if you're hovering between cells) |
Thanks @marthacryan for your feedback, just documenting what was discussed today based on your suggestions above, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the drag&drop handling code it feels like it's doing a lot more than it should need to (I might just not have enough experience with event handlers though), but since it works I'm ok with it as is. I included a couple comments below as well.
As per review feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to approve this for now and open a new issue for the drag drop selection bug in safari since it affects both this and pipeline as well and it's only an annoyance and only on safari
Opened issue: #1074 |
Drag and drop code snippet from display list into notebooks and file editors
Fixes #532
Adapted from https://github.com/jupytercalpoly/jupyterlab-code-snippets/
Developer's Certificate of Origin 1.1