This repository was archived by the owner on Dec 15, 2022. It is now read-only.
File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ class ProjectFindView extends View
188
188
189
189
copySearchResultFromPane : ->
190
190
atom .clipboard .write (Util .parseSearchResult ())
191
- atom .notifications .addInfo (' Search results are copied to clipboard' )
191
+ atom .notifications .addInfo (' Search results have been copied to clipboard' )
192
192
193
193
handleEventsForReplace : ->
194
194
@replaceEditor .getModel ().getBuffer ().onDidChange => @model .clearReplacementState ()
Original file line number Diff line number Diff line change @@ -27,19 +27,19 @@ module.exports =
27
27
else
28
28
" No #{ if replacedPathCount? then ' more' else ' ' } results found for '#{ @ sanitizePattern (findPattern)} '"
29
29
30
- parseSearchResult : () ->
30
+ parseSearchResult : ->
31
31
searchResult = []
32
32
summary = $ (' span.preview-count' , ' div.preview-pane' ).text ()
33
33
searchResult .push summary, ' '
34
34
35
- $ (' ol.results-view.list-tree>li.path' ).each () ->
36
- path = $ (' span.path-name' , @ ).text ()
37
- matches = $ (' span.path-match-number' , @ ).text ()
35
+ $ (' ol.results-view.list-tree>li.path' ).each ->
36
+ path = $ (' span.path-name' , this ).text ()
37
+ matches = $ (' span.path-match-number' , this ).text ()
38
38
searchResult .push path + ' ' + matches
39
39
40
- $ (' li.search-result' , @ ).filter (' :visible' ).each () ->
41
- lineNumber = $ (' span.line-number' , @ ).text ()
42
- preview = $ (' span.preview' , @ ).text ()
40
+ $ (' li.search-result' , this ).filter (' :visible' ).each ->
41
+ lineNumber = $ (' span.line-number' , this ).text ()
42
+ preview = $ (' span.preview' , this ).text ()
43
43
searchResult .push ' \t ' + lineNumber + ' \t ' + preview
44
44
searchResult .push ' '
45
45
searchResult .join (' \n ' )
You can’t perform that action at this time.
0 commit comments