Skip to content

Commit

Permalink
feat: command to backup and close Obsidian
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Aug 25, 2022
1 parent cee562c commit c144d80
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,16 @@ export default class ObsidianGit extends Plugin {
name: "Create backup",
callback: () => this.promiseQueue.addTask(() => this.createBackup(false))
});

this.addCommand({
id: "backup-and-close",
name: "Create backup and close",
callback: () => this.promiseQueue.addTask(async () => {
await this.createBackup(false);
window.close();
})
});

this.addCommand({
id: "commit-push-specified-message",
name: "Create backup with specific message",
Expand Down

0 comments on commit c144d80

Please sign in to comment.