diff --git a/README.md b/README.md index 4388104..b509dec 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ You can also do it globally via the plugin's settings: take a look at the “Def ### How can I change how the report renders? -By default, the report uses [callouts](https://help.obsidian.md/Editing+and+formatting/Callouts) to show you the report. You can change this via the plugin's settings; there are four templates intended to do it in the “Templates” section. +By default, the report uses [callouts](https://help.obsidian.md/Editing+and+formatting/Callouts) to show you the report. You can change this via the plugin's settings; there are few templates intended to do it in the “Templates” section. Basically, you can specify the template for header of the whole report, for a task, for a log line, and for the footer. Macros you can use in each one specified directly in the plugin's settings. diff --git a/src/settings.ts b/src/settings.ts index 4e735ed..97ba71e 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -88,21 +88,6 @@ export class TimesheetSettingTab extends PluginSettingTab { new Setting(containerEl).setName("Templates").setHeading(); - new Setting(containerEl) - .setName("Header") - .setDesc( - "Macros: {tasksDuration} — total duration of all tasks in a note." - ) - .setClass("text-snippets-class") - .addTextArea((text) => - text - .setValue(this.plugin.settings.templateHeader) - .onChange(async (value) => { - this.plugin.settings.templateHeader = value; - await this.plugin.saveSettings(); - }) - ); - new Setting(containerEl) .setName("Duration") .setDesc( @@ -118,6 +103,21 @@ export class TimesheetSettingTab extends PluginSettingTab { }) ); + new Setting(containerEl) + .setName("Header") + .setDesc( + "Macros: {tasksDuration} — total duration of all tasks in a note." + ) + .setClass("text-snippets-class") + .addTextArea((text) => + text + .setValue(this.plugin.settings.templateHeader) + .onChange(async (value) => { + this.plugin.settings.templateHeader = value; + await this.plugin.saveSettings(); + }) + ); + new Setting(containerEl) .setName("Task") .setDesc(