From a0a7a1758cd71e2f270ab0fa231173e2006585f5 Mon Sep 17 00:00:00 2001 From: Benature Date: Tue, 11 May 2021 10:35:22 +0800 Subject: [PATCH] add a command for manual update bib data --- src/main.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.ts b/src/main.ts index f183686..f8733a6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -136,6 +136,15 @@ export default class CitationPlugin extends Plugin { }, }); + this.addCommand({ + id: 'update-bib-data', + name: 'Update bib data', + hotkeys: [{ modifiers: ['Ctrl', 'Shift'], key: 'r' }], + callback: () => { + this.loadLibrary(); + }, + }); + this.addCommand({ id: 'insert-citation', name: 'Insert literature note link',