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

Speed up "multi-region" navigation in search box #4044

Merged
merged 1 commit into from Nov 6, 2023

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Nov 6, 2023

If you enter e.g. "chr1" in the search box, it skips lookup in e.g. the trix store, because it just knows it is a refname and then quickly navigates to it.

If you try the same with a "multi-region" style navigation like "chr1 chr2" to open up chr1 and chr2 side by side, it will not do this short cut, but this PR fixes that (first space separates the search query, then applies check for shortcut on each element of array)

@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Nov 6, 2023
@cmdcolin cmdcolin added enhancement New feature or request and removed needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) labels Nov 6, 2023
@cmdcolin cmdcolin merged commit 1cf7ab8 into main Nov 6, 2023
10 of 11 checks passed
@cmdcolin cmdcolin deleted the short-circuit-searchrefnames branch November 6, 2023 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant