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

Refactor SearchGroup #260

Merged
merged 3 commits into from
Dec 17, 2020
Merged

Conversation

citizenmatt
Copy link
Member

Continuing the groundwork for VIM-2173 that began in #257, this PR refactors SearchGroup. There are no code changes, only moving methods around. This is a separate PR to make the next PR easier to review - it will be making code changes without moving things around 😄

  • Static "find" methods are moved to SearchHelper. The methods in SearchGroup are now the "high level" APIs to implement Vim's search and replace functionality. They maintain state, parse commands and call into SearchHelper to do the actual searching.
  • Rearrange and document the APIs in SearchGroup to better understand what the methods are doing (there are quite a few overloads simply called search that do different things with state and carets, etc.)
  • Remove the unnecessary Direction.UNSET introduced in Extract SearchHighlightsHelper from SearchGroup #257

@AlexPl292 AlexPl292 merged commit 4945000 into JetBrains:master Dec 17, 2020
@AlexPl292
Copy link
Member

AlexPl292 commented Dec 17, 2020

So many comments. Awesome, thank you!

@citizenmatt citizenmatt deleted the refactor-searchgroup branch December 21, 2020 14:05
@citizenmatt citizenmatt mentioned this pull request Feb 26, 2021
5 tasks
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.

2 participants