-
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
Find/replace highlighting keeps coming back up after find prompt closed #6975
Comments
Based on more research, this probably belongs as a bug report for /jupyterlab since it appears that notebook implements this find/replace method from there. Based on an initial test, the same bug behavior is present in jupyterlab. I'm not sure if it's possible to move it without having to completely rewrite this... |
I'm not a web developer by any stretch, so take this with a grain of salt. Here goes... It looks like what get implemented is a searchprovider class from /jupyterlab/packages/documentsearch/src/searchprovider/.ts This is itself an extension of the search provider class from /jupyterlab/packages/codemirror/src/searchprovider.ts. In order to allow for search in a cell by cell manner in a notebook, this second class has the attribute isActive. This gets checked by the updateCodeMirror method(ln 448). If the query value is set and isActive is true, all matches are highlighted (ln 471). I suspect this bug comes from isActive not being properly handled for File Editor vs how it is handled Notebook on a cell by cell basis. Again, I don't do web design, so I'm not familiar with these languages. This was my best effort to track down what might be causing this. Hopefully this gives someone a good starting point. |
This will likely be fixed as a result of fixing jupyterlab/jupyterlab#14871, filed by the same author. Thank you for your contribution! |
Description
Highlighting for find/replace in text editor comes back unexpectedly after closing find interface and typing additional text.
Reproduce
This seems to only affect the text editor, not find/replace behavior within jupyter notebook cells.
Highlighting is resolved by clearing the find query before closing the find/replace interface.
Expected behavior
Text should remain unhighlighted until the find/replace interface is re-opened.
Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: