From dee8138564b2f56390648fbaa709c0ea86964469 Mon Sep 17 00:00:00 2001 From: friebetill Date: Wed, 22 Feb 2023 11:58:13 +0800 Subject: [PATCH] Remove file-diff prefix of commands Obsidian will automatically prefix the command id with the plugin id, we don't need to do it ourself. --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 128618b..136a481 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,7 +9,7 @@ export default class FileDiffPlugin extends Plugin { onload(): void { this.addCommand({ - id: 'file-diff', + id: 'compare', name: 'Compare', editorCallback: async () => { // Get current active file @@ -38,7 +38,7 @@ export default class FileDiffPlugin extends Plugin { }) this.addCommand({ - id: 'file-diff-merge', + id: 'compare-and-merge', name: 'Compare and merge', editorCallback: async () => { // Show warning when this option is selected for the first time