Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 8f4ec43

Browse files
committed
🎨 fix linter errors, improve notification message
1 parent ed31dd0 commit 8f4ec43

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/project-find-view.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class ProjectFindView extends View
188188

189189
copySearchResultFromPane: ->
190190
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')
192192

193193
handleEventsForReplace: ->
194194
@replaceEditor.getModel().getBuffer().onDidChange => @model.clearReplacementState()

lib/project/util.coffee

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ module.exports =
2727
else
2828
"No #{if replacedPathCount? then 'more' else ''} results found for '#{@sanitizePattern(findPattern)}'"
2929

30-
parseSearchResult: () ->
30+
parseSearchResult: ->
3131
searchResult = []
3232
summary = $('span.preview-count', 'div.preview-pane').text()
3333
searchResult.push summary, ''
3434

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()
3838
searchResult.push path + ' ' + matches
3939

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()
4343
searchResult.push '\t' + lineNumber + '\t' + preview
4444
searchResult.push ''
4545
searchResult.join('\n')

0 commit comments

Comments
 (0)