-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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+F/CMD+F overrides browser's Find function with custom code #7380
Comments
Yes this used to be the case before: #6905 (comment)
This was indeed changed in #6905 because of the new implementation of the notebook. |
@jtpio just to understand, does that mean the current behavior is intentional or is it just a side effect? and is there a way to turn it off? And perhaps most importantly, I'm designing a college course (ETA Fall 2025) that will have students run jupyter. To help them set up their environment I plan to give them either a pip requirements file or an anaconda configuration to help them set up what they need for the course. Would there be a way using one of those two methods to make the browser search the default search behavior upon setup, so I don't need to ask the students to go into settings to customize that? |
@ai-robert yes this is intentional because of how the notebook component works in JupyterLab / Jupyter Notebook. See the comment above:
To turn it off, you should be able to provide a custom settings file to disable the related keyboard shortcut. Or disable the notebook windowing mode (default is See https://jupyter-notebook.readthedocs.io/en/stable/notebook.html#searching for more information. Happy to improve docs on this if you feel like opening a PR to make some edits please feel free, thanks! |
@dreampuf were you able to try the suggestion from the above comment?
Or are you suggesting there should be a more visible and explicit setting (or menu item) to disable the built-in search? |
Can you open an issue with reproducible example? If you refer to searching in outputs, you currently need to click on the filters icon and select "Search Cell Outputs". I believe there is a broad agreement that this should be enabled by default: |
This was also brought up in jupyterlab/jupyterlab#16741 2 days ago. I think there should be an escape hatch for users to disable the built-in search, while also believing that there is a need to improve the defaults (as above) so that users do not need/want to disable it ;) |
@jtpio @krassowski, I don't know the contexts in full window mode, so I did some searching on the keywords. If the full mode is the way to improve the performance, I'm ok with having a customized search box. However, the downside would be the different behavior compared to browsers. |
Description
When the user presses CTRL+F or CMD+F, custom JupyterLab code for Find appears. This behavior differs from the classic notebook (https://github.com/jupyter/nbclassic/) which does not override these shortcut keys, and which instead allows the browser's built-in search bar to be displayed and used.
Expected behavior
By default, in Notebook 7, CTRL+F or CMD+F should cause the browser's default search user interface to display.
Context
This was spun off from #7041, originally filed by @jph00.
Jupyter Notebook should not override browsers' built-in keyboard shortcuts, wherever possible.
Virtual rendering may cause the browser's search box to search only a portion of the notebook; unrendered cells may not be made available to the browser.
The text was updated successfully, but these errors were encountered: