-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Reopen recently opened/closed files and modal navigation #15483
Reopen recently opened/closed files and modal navigation #15483
Conversation
Co-authored-by: Frédéric Collonval <fcollonval@gmail.com> Co-authored-by: Shreyas Cholia <shreyas@gmail.com> Co-authored-by: Matt Henderson <mhenderson@lbl.gov> Co-authored-by: Trevor Slaton <trevor.slaton@gmail.com> Co-authored-by: Adrien Delsalle <ad.delsalle@gmail.com>
The cycle was introduced by removing void on returned Promise. Because void operator returns undefined, the promise on `IFileBrowserCommands` was never awaited (on main branch) which meant that `@jupyterlab/filebrowser-extension:widget` (the only dependant of commands token) was able to initialise as soon as the commands were activated (not waiting for the reveal/settings promises cascade); this commits restores ignoring the result of the promise and instead returns the command mapping after the promise was invoked.
Move type to `Private`, add docstrings Automatic application of license header
Thanks for making a pull request to jupyterlab! |
You've probably already thought through this, but just in case, I wanted to mention that in Chrome on my Mac, Command Shift A opens the browser's "Search Tabs" modal. |
Any suggestions on alternative shortcuts we could use?
|
For now switching to Ctrl + Alt + A as it is not used by major browsers/operating systems as per https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts |
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 @krassowski
I have an optional suggestion.
Co-authored-by: Frédéric Collonval <fcollonval@gmail.com>
packages/docmanager/src/recents.ts
Outdated
import { PageConfig } from '@jupyterlab/coreutils'; | ||
import { Contents, ServerConnection } from '@jupyterlab/services'; | ||
import { IStateDB } from '@jupyterlab/statedb'; | ||
import { IDisposable } from '@lumino/disposable'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
…erlab into feature/recents-manager
Snapshots will need updating after merging. I think one of the docs snapshots needs some work in general. |
ab321d7
to
8854035
Compare
but please update documentation snapshots (now, try again) |
Before this commit we had two very similar snapshots: - interface-tabs-documentation-linux.png - running-layout-documentation-linux.png both showing "open tabs" and "kernels" sections. After this commit the former now only shows "open tabs" reducing the burden reviewing snapshots when kernels are flaky or when kernels section changes
8854035
to
0bcc5f5
Compare
Documentation snapshots updated. |
and the final nth no longer matches after closing nth-1.
Documentation snapshots updated. |
References
Punchlist
Code changes
Compared to
jupyterlab-recents
extension:IFileBrowserCommands
to explicitly depend on the availability of the filebrowser to open directories (and to fallback to document manager command if filebrowser does not provide such tokenBecause rather than adding a new package the extension gets integrated on the lower level by adding separate plugins to relevant existing packages (document manager, main menu) merging git history did no make much sense; instead the autorship was preserved by using
Co-authored-by
feature.User-facing changes
Open Recent submenu
Recently closed in the sidebar
Also seen is the [↗] button to open modal
Reopen modal
Backwards-incompatible changes
None.