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

feat: highlight text in workspace search on open and add backwards nav #2440

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

riknoll
Copy link
Contributor

@riknoll riknoll commented Aug 6, 2024

The basics

The details

Resolves

Fixes #2438

Proposed Changes

Tweaks the behavior of the workspace search plugin:

  • Opening the search box now selects the current text
  • Pressing shift+enter while navigating through search results now moves backwards in the list

Reason for Changes

See attached issue

Test Coverage

I tested both changes manually.

I attempted to add unit tests for the selection fix, but it seems like whatever headless DOM library the blockly test runner is using doesn't have great support for the document.getSelection() API.

Documentation

None

Additional Information

None

@riknoll riknoll requested a review from a team as a code owner August 6, 2024 20:09
@riknoll riknoll requested review from BeksOmega and removed request for a team August 6, 2024 20:09
Copy link
Contributor

@BeksOmega BeksOmega left a comment

Choose a reason for hiding this comment

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

LGTM after format changes!

@riknoll
Copy link
Contributor Author

riknoll commented Aug 6, 2024

@BeksOmega ran prettier!

@BeksOmega BeksOmega merged commit 0eb13cd into google:master Aug 6, 2024
7 checks passed
@BeksOmega
Copy link
Contributor

Thank you for contributing this @riknoll ! It should get published automatically on Thursday ~10AM PT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workspace search doesn't behave like a browser search box
2 participants