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.
This commit is contained in:
friebetill 2023-02-22 11:58:13 +08:00
parent 705176ef6b
commit dee8138564

View file

@ -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