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:
Kevin Sawicki
2013-07-29 14:40:18 -07:00
parent b9261a33be
commit 69733a8f7a

View File

@@ -52,7 +52,7 @@ class MarkdownPreviewView extends ScrollView
path: @buffer.getPath()
getTitle: ->
"Markdown Preview #{@buffer.getBaseName()}"
"#{@buffer.getBaseName()} Preview"
getUri: ->
"markdown-preview:#{@buffer.getPath()}"