Project wide search and replace implementation #1019
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive project-wide search and replace feature, including UI integration and undo/redo support. It adds new commands for searching and replacing text across all files in a project, and implements a manager to handle batch replacements with the ability to undo and redo changes. Additionally, it improves the accuracy of code search and updates UI strings.
Project-wide Search and Replace Functionality:
ProjectReplaceManager(core/main/src/main/java/com/rk/searchreplace/ProjectReplaceManager.kt) to handle project-wide search and replace operations, including support for regex, case sensitivity, whole word matching, and undo/redo of replacements.GlobalActions.kt). [1] [2]Command Palette Enhancements:
CommandProvider, with subcommands for "Search in files", "Search and Replace", "Replace in files", "Undo project replace", and "Redo project replace", each with appropriate enablement and icons. [1] [2] [3]Search Accuracy Improvements:
UI/UX: