From 2f7d1feac87db60e782e814160ef38bf43543185 Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Wed, 3 Sep 2025 17:22:20 +0200 Subject: [PATCH] Updates export command labels and descriptions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refines the naming and descriptions of the export commands to better reflect their functionality and improve user understanding. The "Export current note to PDF" command is now "Export current note(s)", and "Export to PDF with configuration" is now "Export with configuration…". --- main.ts | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/main.ts b/main.ts index b766b7d..f29462e 100644 --- a/main.ts +++ b/main.ts @@ -171,7 +171,7 @@ export class obsidianTypstPDFExport extends Plugin { // Export current note command this.addCommand({ id: 'export-current-note', - name: 'Export current note to PDF', + name: 'Export current note(s)', hotkeys: [{ modifiers: ['Mod', 'Shift'], key: 'e' }], editorCallback: (editor: Editor, view: MarkdownView) => { this.exportCurrentNote(view); @@ -181,38 +181,13 @@ export class obsidianTypstPDFExport extends Plugin { // Export with configuration command this.addCommand({ id: 'export-with-config', - name: 'Export to PDF with configuration', + name: 'Export with configuration…', hotkeys: [{ modifiers: ['Mod', 'Shift', 'Alt'], key: 'e' }], editorCallback: (editor: Editor, view: MarkdownView) => { this.showExportModal(view); } }); - // Export folder to PDF command - this.addCommand({ - id: 'export-folder-to-pdf', - name: 'Export folder to PDF', - checkCallback: (checking: boolean) => { - const activeFile = this.app.workspace.getActiveFile(); - const canRun = activeFile && activeFile.parent; - - if (canRun && !checking && activeFile.parent) { - this.handleFolderExport(activeFile.parent); - } - - return !!canRun; - } - }); - - // Batch export command - this.addCommand({ - id: 'batch-export', - name: 'Batch export notes to PDF', - callback: () => { - this.batchExportNotes(); - } - }); - // Check dependencies command this.addCommand({ id: 'check-dependencies', @@ -272,7 +247,7 @@ export class obsidianTypstPDFExport extends Plugin { menu.addItem((item) => item - .setTitle('Export current note') + .setTitle('Export current note(s)') .setIcon('file-output') .onClick(() => { this.exportFile(activeView.file!); @@ -281,7 +256,7 @@ export class obsidianTypstPDFExport extends Plugin { menu.addItem((item) => item - .setTitle('Export with configuration...') + .setTitle('Export with configuration…') .setIcon('settings') .onClick(() => { this.showExportModal(activeView);