Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit c8284ff

Browse files
committed
Merge pull request #3324 from TomMalbran/tom/find-in-files-p1
[OPEN] Find in Files Improvements (Part 1: Templates)
2 parents c8e69b3 + 8c1b146 commit c8284ff

5 files changed

Lines changed: 181 additions & 111 deletions

File tree

src/htmlContent/search-dialog.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{CMD_FIND}}:
2+
<input type="text" id="searchInput" value="{{value}}" style="width: 10em" />
3+
<div class="message">
4+
<span id="searchlabel">{{{label}}}</span>
5+
<span style="color: #888">({{SEARCH_REGEXP_INFO}})</span>
6+
</div>
7+
<div class="error"></div>

src/htmlContent/search-panel.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div id="search-results" class="bottom-panel vert-resizable top-resizer no-focus">
2+
<div class="toolbar simple-toolbar-layout">
3+
<div class="title">{{SEARCH_RESULTS}}</div>
4+
<div class="title" id="search-result-summary"></div>
5+
<a href="#" class="close">&times;</a>
6+
</div>
7+
<div class="table-container resizable-content"></div>
8+
</div>
Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
<div id="search-results" class="bottom-panel vert-resizable top-resizer no-focus">
2-
<div class="toolbar simple-toolbar-layout">
3-
<div class="title">{{SEARCH_RESULTS}}</div>
4-
<div class="title" id="search-result-summary"></div>
5-
<a href="#" class="close">&times;</a>
6-
</div>
7-
<div class="table-container resizable-content"></div>
8-
</div>
1+
<table class="table table-striped table-condensed row-highlight">
2+
<tbody>
3+
{{#searchList}}
4+
<tr class="file-section" data-file="{{file}}">
5+
<td colspan="3"><span class="disclosure-triangle expanded"></span>{{{filename}}}</td>
6+
</tr>
7+
{{#items}}
8+
<tr data-file="{{file}}" data-item="{{item}}">
9+
<td></td>
10+
<td style="white-space: nowrap">{{line}}</td>
11+
<td>{{pre}}<span class="highlight">{{highlight}}</span>{{post}}</td>
12+
</tr>
13+
{{/items}}
14+
{{/searchList}}
15+
</tbody>
16+
</table>

src/nls/root/strings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ define({
130130
"FIND_IN_FILES_MORE_THAN" : "More than ",
131131
"FIND_IN_FILES_MAX" : " (showing the first {0} matches)",
132132
"FIND_IN_FILES_FILE_PATH" : "File: <span class='dialog-filename'>{0}</span>",
133-
"FIND_IN_FILES_LINE" : "line:&nbsp;{0}",
133+
"FIND_IN_FILES_LINE" : "line: {0}",
134134

135135
"ERROR_FETCHING_UPDATE_INFO_TITLE" : "Error getting update info",
136136
"ERROR_FETCHING_UPDATE_INFO_MSG" : "There was a problem getting the latest update information from the server. Please make sure you are connected to the internet and try again.",

0 commit comments

Comments
 (0)