mirror of
https://github.com/atom/atom.git
synced 2026-02-06 20:55:33 -05:00
Rename isReadme to isReadmePath
This commit is contained in:
@@ -36,7 +36,7 @@ class PreviewList extends ScrollView
|
||||
operationsByPath = _.groupBy(operations, (operation) -> operation.getPath())
|
||||
for path, ops of operationsByPath
|
||||
classes = ['path']
|
||||
classes.push('readme') if fs.isReadme(path)
|
||||
classes.push('readme') if fs.isReadmePath(path)
|
||||
@li class: classes.join(' '), =>
|
||||
@span path
|
||||
@span "(#{ops.length})", class: 'path-match-number'
|
||||
|
||||
@@ -36,7 +36,7 @@ class FuzzyFinderView extends SelectList
|
||||
$$ ->
|
||||
@li =>
|
||||
ext = fs.extension(path)
|
||||
if fs.isReadme(path)
|
||||
if fs.isReadmePath(path)
|
||||
typeClass = 'readme-name'
|
||||
else if fs.isCompressedExtension(ext)
|
||||
typeClass = 'compressed-name'
|
||||
|
||||
@@ -17,7 +17,7 @@ class FileView extends View
|
||||
@subscribe $(window), 'focus', => @updateStatus()
|
||||
|
||||
extension = fs.extension(@getPath())
|
||||
if fs.isReadme(@getPath())
|
||||
if fs.isReadmePath(@getPath())
|
||||
@fileName.addClass('readme-icon')
|
||||
else if fs.isCompressedExtension(extension)
|
||||
@fileName.addClass('compressed-icon')
|
||||
|
||||
Reference in New Issue
Block a user