-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Ctrl-S is not disabled #364
Ctrl-S is not disabled #364
Comments
Are you testing with JupyterLab 4.3.0b1 or with 4.2? It should be fixed by jupyterlab/jupyterlab#16695.
I don't agree here. Users most often want to have this button just for reassurance. What happens on click is a separate question. They also want to be able to press Ctrl + S. What happens is again a separate question. |
I'm testing with JupyterLab v4.2.5, good to know that it was already fixed in JupyterLab!
So do you think this button should be restored (not greyed out) in jupyter-collaboration? AFAIK there is no such button in Google Docs, and Ctrl-S does't have any effect there. |
I just tested with JupyterLab v4.3.0b1 and the problem is still present. There might still be a problem when we get the model, because the date didn't change after saving? |
With which version of collaboration packages? This was fixed by #337 on this side. It could be a regression due to newer changes. |
The issue appears with jupyter-collaboration |
Microsoft OneNote doesn't have a "save" command, since it only auto-saves, but CTRL+S or CMD+S remains reserved, not bound to anything. If collaboration is enabled in JupyterLab, the |
RTC extension could add a custom shortcut mapped to ctrl + s which would have a selector with higher specificity (hence run first) and: |
I think RTC could even add "disabled" true" to the default shortcut but no 100% i that would work |
Somewhat naive question, since I don't fully understand how the rtc framework is integrated into the document system, but: how would the save menu item work in this case? It seems that we would need to address this at the command level, rather than the shortcut level, to get consistent behavior across all the ways to invoke the command. |
Good point!
We could go even deeper and make this a part of the content provider API discussed in jupyterlab/jupyterlab#16744 - a field/callable saying whether a document can be saved or if it is saved on the server-side might do it. A separate but related idea was special-casing server-side saves related to jupyterlab/jupyterlab#16695 |
@jasongrout Does RTC have a "force sync" command? If so, it might be a good substitute for CTRL+S, since "sync" in RTC is similar enough in functionality to "save" without RTC, and at least in English, both start with S. If it doesn't, consider this a vote to add one. |
In this package, in Creating a
After saving all files, then reinstalling jupyter-collaboration from local source, |
I've noticed in the JupyterLab |
Description
Hitting Ctrl-S in a document that is "dirty" (not yet saved to disk) shows the following warning:
ctrl-s.mp4
Reproduce
Expected behavior
Ctrl-S should probably be disabled, as is the save button in a notebook:
The text was updated successfully, but these errors were encountered: