From c1352c1220f37ffb1cba37b14af434289885c917 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 22 Dec 2022 20:28:27 +0100 Subject: [PATCH] Add NoteEvent as notes get edited --- extract/extract.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extract/extract.py b/extract/extract.py index 72a7c84..d60bd56 100644 --- a/extract/extract.py +++ b/extract/extract.py @@ -6,9 +6,8 @@ import argparse import fitz -# from ... import uis from pubs.plugins import PapersPlugin -from pubs.events import DocAddEvent, DocRemoveEvent +from pubs.events import DocAddEvent, NoteEvent from pubs import repo from pubs.utils import resolve_citekey_list @@ -143,7 +142,7 @@ class ExtractPlugin(PapersPlugin): write_file(notepath, output, 'w') if edit is True: self.ui.edit_file(notepath, temporary=False) - # TODO implement NoteEvent(citekey).send() + NoteEvent(paper.citekey).send() @DocAddEvent.listen()