-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
File editor right-click #8425
File editor right-click #8425
Conversation
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
Note: |
Thanks @karlaspuldaro! So far this looks good to me overall, can you please take it out of draft when it is ready for a full review? |
Thank you @blink1073 , will do :) |
I'd say it is fair to add the ones you highlighted here in this PR. |
b16c7fd
to
a4b1dbe
Compare
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.
LGTM
I have tried this PR in I have also run Also as follow-up, it would be super to add those copy/paste undo/redo to the cell editor which is already well populated, but miss those basic features. |
Hi @echarles And I agree it would be helpful to add these features to notebook cells. Is there an open issue for it? |
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.
LGTM
Thanks @karlaspuldaro! @saulshanabrook this is backwards compatible if you want to include it in 2.2. |
@blink1073 Sounds good! |
File editor right-click
@karlaspuldaro sorry missed your comment. Good to know it works in dev mode. It was for sure something in my env... |
Hey sorry for the late input on this, there are two things I'd like to bring up:
I believe this is because (https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText)
It's possible that document.exec('paste') would be workaround here? Also, the extra jupyterlab/packages/application/src/shell.ts Line 780 in 5dc3859
|
Hi @ianhi |
References
#2778 - Improve the right-click menu of the editor
Code changes
New commands added to file editor right-click menu:
User-facing changes
When right clicking on a file editor with a text selection:
When there is no text selection, cut and copy buttons are disabled
Backwards-incompatible changes