mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Put file name at beginning of markdown preview title
Previously the 'Markdown Preview - ' prefix dominated the tab text making it hard to disambiguate which preview was for which editor. Now the title leads with the file name and follows with a "Preview" suffix.
This commit is contained in:
@@ -52,7 +52,7 @@ class MarkdownPreviewView extends ScrollView
|
||||
path: @buffer.getPath()
|
||||
|
||||
getTitle: ->
|
||||
"Markdown Preview – #{@buffer.getBaseName()}"
|
||||
"#{@buffer.getBaseName()} Preview"
|
||||
|
||||
getUri: ->
|
||||
"markdown-preview:#{@buffer.getPath()}"
|
||||
|
||||
Reference in New Issue
Block a user