diff --git a/CHANGELOG.md b/CHANGELOG.md index 81492f48..3cdc67e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ ### ⚡️ Optimizations - Internal post message optimizations to the webviews +- Preview tab now shows the title of the page/content if present ### 🐞 Fixes diff --git a/src/commands/Preview.ts b/src/commands/Preview.ts index 9a077795..eb3b4d84 100644 --- a/src/commands/Preview.ts +++ b/src/commands/Preview.ts @@ -93,7 +93,7 @@ export class Preview { // Create the preview webview const webView = window.createWebviewPanel( 'frontMatterPreview', - 'FrontMatter Preview', + article?.data?.title ? `Preview: ${article?.data?.title}` : 'FrontMatter Preview', { viewColumn: ViewColumn.Beside, preserveFocus: true