This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added 'All' button to FindReplace functionality.
Work in progress, problem with htmlReady and createBottomPanel. Still work in progress, version with some UI to review. Work in progress, brackets freezing on document.replaceRange Fixed freezing issue and close panel after replacing. Added document change handler to close the replace panel if it's open. Replace all panel now automatically refreshes on document change. Refactoring and fixing JSLint errors. Replace button is now switched to Search button after a document is modified. Deleting wrongly added file. Added test for simple find-replace case. Changes according to comments. Added limit of 300 search results. Modified string to show when limit is reached. Refactoring after code-review #1 Refactoring after code-review #2 Refactoring after code-review #3 Refactoring after code-review #4 Click on the stop button so the replace bar is dismissed. Fixed failing testcase.
- Loading branch information
Showing
6 changed files
with
231 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div id="replace-all-results" class="bottom-panel vert-resizable top-resizer no-focus"> | ||
<div class="toolbar simple-toolbar-layout"> | ||
<input type="checkbox" class="check-all" /> | ||
<div class="title"></div> | ||
<button class="replace-checked">{{BUTTON_REPLACE}}</button> | ||
<a href="#" class="close">×</a> | ||
</div> | ||
<div class="table-container resizable-content"></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<table class="table table-striped table-condensed row-highlight"> | ||
<tbody> | ||
{{#searchResults}} | ||
<tr class="replace-row" data-match="{{index}}"> | ||
<td class="checkbox-column"><input type="checkbox" class="check-one" checked="true" /></td> | ||
<td class="line-column">{{line}}</td> | ||
<td>{{pre}}<span class="highlight">{{highlight}}</span>{{post}}</td> | ||
</tr> | ||
{{/searchResults}} | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters