-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fixes renaming files from title while using a custom drive #12849
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
Conversation
|
Thanks for making a pull request to jupyterlab! |
|
Thanks! If I understand correctly it should close #12755 ? |
|
Thanks @hbcarlos for working on this. Just tried on Binder after installing the rename-drive.mp4Not sure yet but this might also be related to the extension itself. |
|
Thanks, @jtpio! Let me check what is going on with the update of the title.
Yes, I believe when renaming from the file browser, the title is not updated because the file browser doesn't emit the signal But I'm not sure what is going on when renaming from the main menu. I need to check that. |
|
@jtpio I just tried locally, and if you wait a bit, the file gets renamed. jupyterlab/packages/services/src/contents/index.ts Lines 1189 to 1212 in 8066d22
the default drive from lab, emits a signal after renaming the file but that's not the case with the extension, see: https://github.com/jupyterlab-contrib/jupyterlab-filesystem-access/blob/3c7d326a8de6b79c7f506d02ead949bd54eca384/src/drive.ts#L211-L221 and the issue we are seeing in your screencast is that the file browser doesn't update the list of files until it fetches them. We can merge this PR and fix the remaining issues in the extension. |
|
Version It includes your fix in jupyterlab-contrib/jupyterlab-filesystem-access#41 @hbcarlos, thanks! |
Will have a second look on Binder with this new version. |
|
This is likely because of the |
for more information, see https://pre-commit.ci
Fix typo Co-authored-by: Jeremy Tuloup <jeremy.tuloup@gmail.com>
|
Rebasing to make sure we grab the latest state of master. |
|
Looking better after the rebase. Just checked on Binder and it seems to be behaving correctly: rename-drive-2.mp4 |
Just pushed a commit to add this change to https://jupyterlab.readthedocs.io/en/latest/extension/extension_migration.html#jupyterlab-3-x-to-4-x. |
|
Thanks, @jtpio! |
jtpio
left a comment
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.
Thanks!


Fixes #12755
cc @jtpio @martinRenou
References
Code changes
User-facing changes
Backwards-incompatible changes
Yes, the rename dialog now receives the context instead of the path.