Do not ask confirmation on RemoveEvent for texnote
This commit is contained in:
parent
54a7ed53a5
commit
22324bcd8d
@ -1,5 +1,4 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import collections
|
import collections
|
||||||
@ -34,6 +33,7 @@ BIB_INFO = os.path.splitext(TPL_BIB)[0].replace(DIR, '')[1:]
|
|||||||
BIBSTYLE_PATTERN = '\\bibliographystyle{INFO}'
|
BIBSTYLE_PATTERN = '\\bibliographystyle{INFO}'
|
||||||
DFT_BIBSTYLE_INFO = 'ieeetr'
|
DFT_BIBSTYLE_INFO = 'ieeetr'
|
||||||
|
|
||||||
|
|
||||||
class TexnotePlugin(PapersPlugin):
|
class TexnotePlugin(PapersPlugin):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -254,7 +254,7 @@ def create(addevent):
|
|||||||
@RemoveEvent.listen()
|
@RemoveEvent.listen()
|
||||||
def remove(rmevent):
|
def remove(rmevent):
|
||||||
texplug = TexnotePlugin.get_instance()
|
texplug = TexnotePlugin.get_instance()
|
||||||
texplug.remove(rmevent.citekey)
|
texplug.remove(rmevent.citekey, force=True)
|
||||||
|
|
||||||
|
|
||||||
@RenameEvent.listen()
|
@RenameEvent.listen()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user