From 9f9142e130c6d7294d5257447c1da8db7410d086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=BD=E6=9C=BD=E6=9C=BD=E6=9C=BD=E6=9C=BD?= <694253220@qq.com> Date: Sun, 9 Mar 2025 20:25:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=BB=98=E8=AE=A4=E5=BF=AB?= =?UTF-8?q?=E6=8D=B7=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/main.ts b/src/main.ts index 088d7f8..f43150a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -124,14 +124,10 @@ export default class OneStepWikiLinkPlugin extends Plugin { this.addCommand({ id: "convert-all-matching-words-to-wiki-links", name: "Convert All Matching Words to Wiki Links", - editorCallback: (editor) => { - this.convert2WikiLink(); - } - }); - - this.addCommand({ - id: "convert-all-matching-words-to-wiki-links-cn", - name: "转换所有匹配的单词为维基链接", + hotkeys: [{ + modifiers: ['Mod'], + key: 'r' + }], editorCallback: (editor) => { this.convert2WikiLink(); } @@ -168,7 +164,7 @@ export default class OneStepWikiLinkPlugin extends Plugin { // } // })); - console.log(this.fileNameList) + // console.log(this.fileNameList) // this.checkContent(); }