mirror of
https://github.com/busyogg/OneStepWikiLink.git
synced 2026-07-22 05:41:52 +00:00
新增默认快捷键
This commit is contained in:
parent
9a936e35f6
commit
9f9142e130
1 changed files with 5 additions and 9 deletions
14
src/main.ts
14
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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue