mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -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')
|
||||
|
||||
@@ -181,7 +181,7 @@ module.exports =
|
||||
], ext, true) >= 0
|
||||
|
||||
|
||||
isReadme: (path) ->
|
||||
isReadmePath: (path) ->
|
||||
extension = @extension(path)
|
||||
base = @base(path, extension).toLowerCase()
|
||||
base is 'readme' and (extension is '' or @isMarkdownExtension(extension))
|
||||
|
||||
Reference in New Issue
Block a user