WIP: Ported Cloud9 Find Replace Plugin to Ace Editor with Enhancements #5502
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.
Issue #, if available: #4006, #3932, #2869, #2059, #2751
Description of changes:
This pull request introduces a significant update to the Ace Editor by porting the Cloud9 Find Replace plugin). The integration of this plugin brings several key enhancements and fixes, improving the search and replace functionality within the Ace Editor environment. Below are the major changes and benefits included in this update:
Users can now perform searches across multiple lines, enhancing the editor's capability to handle complex search patterns and large blocks of text.
The search interface highlights regular expressions within the search input box, providing immediate visual feedback and aiding in the construction of complex regex patterns.
This update fixes issues with regex lookahead operations, ensuring that advanced regex patterns are interpreted and executed correctly, thereby improving the accuracy and reliability of search results.
The search functionality now operates within a WebWorker, ensuring that the UI remains responsive even during extensive search operations. This enhancement significantly improves the user experience by preventing UI freezes during long-running searches.
A history feature has been added to both the find and replace input elements. Users can easily access their previous search queries, making repetitive search and replace tasks more efficient and user-friendly.
Things to Improve:
preserveCase
option to the searchbox will enhance the replace functionality, allowing users to maintain the case of the original text or match the case of the replacement text. This feature would provide more flexibility and control over text manipulation tasks.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.