Skip to content
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

Fix unexpected jump to last search result when using documentsearch #7835

Merged
merged 2 commits into from Jan 30, 2020

Conversation

marisaaquilina
Copy link
Contributor

References

This is a fix to issue #7476: adding or deleting cells while using documentsearch unexpectedly jumps to the last result of the query.

Code changes

The jumping behavior was originally an intentional feature, but one that contradicts expected behavior of documentsearch. I have removed _restartQuery() and modified functions supporting this feature in notebooksearchprovider.ts.

User-facing changes

This fix allows users to continue working in their current spot after adding or deleting cells while keeping the document search box open. To proceed to the next search result, users can press enter within the search box as expected.

Backwards-incompatible changes

None

@jupyterlab-dev-mode
Copy link

Thanks for making a pull request to JupyterLab!

To try out this branch on binder, follow this link: Binder

@blink1073 blink1073 added this to the 2.0 milestone Jan 30, 2020
Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@gittar
Copy link

gittar commented Feb 2, 2020

Thank you, Marisa!

@lock lock bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Mar 10, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Mar 10, 2020
@krassowski
Copy link
Member

This also fixed #6701, #7308 and #9437.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pkg:documentsearch status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants