Skip to content

Commit

Permalink
fix: move commit msg setting to correct heading
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Dec 7, 2022
1 parent 8520c2b commit 88eabc9
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,26 +162,6 @@ export class ObsidianGitSettingsTab extends PluginSettingTab {
})
);

new Setting(containerEl)
.setName("Commit message on manual backup/commit")
.setDesc(
"Available placeholders: {{date}}" +
" (see below), {{hostname}} (see below) and {{numFiles}} (number of changed files in the commit)"
)
.addText((text) =>
text
.setPlaceholder("vault backup: {{date}}")
.setValue(
plugin.settings.commitMessage
? plugin.settings.commitMessage
: ""
)
.onChange((value) => {
plugin.settings.commitMessage = value;
plugin.saveSettings();
})
);

new Setting(containerEl)
.setName("Specify custom commit message on auto backup")
.setDesc("You will get a pop up to specify your message")
Expand Down Expand Up @@ -215,6 +195,27 @@ export class ObsidianGitSettingsTab extends PluginSettingTab {
containerEl.createEl("br");
containerEl.createEl("h3", { text: "Commit message" });

new Setting(containerEl)
.setName("Commit message on manual backup/commit")
.setDesc(
"Available placeholders: {{date}}" +
" (see below), {{hostname}} (see below) and {{numFiles}} (number of changed files in the commit)"
)
.addText((text) =>
text
.setPlaceholder("vault backup: {{date}}")
.setValue(
plugin.settings.commitMessage
? plugin.settings.commitMessage
: ""
)
.onChange((value) => {
plugin.settings.commitMessage = value;
plugin.saveSettings();
})
);


new Setting(containerEl)
.setName("{{date}} placeholder format")
.setDesc('Specify custom date format. E.g. "YYYY-MM-DD HH:mm:ss"')
Expand Down

0 comments on commit 88eabc9

Please sign in to comment.