Add NoteEvent as notes get edited

This commit is contained in:
Marty Oehme 2022-12-22 20:28:27 +01:00
parent 8486864132
commit c1352c1220
Signed by: Marty
GPG Key ID: 73BA40D5AFAF49C9
1 changed files with 2 additions and 3 deletions

View File

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