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

View file

@ -6,9 +6,8 @@ import argparse
import fitz import fitz
# from ... import uis
from pubs.plugins import PapersPlugin from pubs.plugins import PapersPlugin
from pubs.events import DocAddEvent, DocRemoveEvent from pubs.events import DocAddEvent, NoteEvent
from pubs import repo from pubs import repo
from pubs.utils import resolve_citekey_list from pubs.utils import resolve_citekey_list
@ -143,7 +142,7 @@ class ExtractPlugin(PapersPlugin):
write_file(notepath, output, 'w') write_file(notepath, output, 'w')
if edit is True: if edit is True:
self.ui.edit_file(notepath, temporary=False) self.ui.edit_file(notepath, temporary=False)
# TODO implement NoteEvent(citekey).send() NoteEvent(paper.citekey).send()
@DocAddEvent.listen() @DocAddEvent.listen()