Quote:
Originally Posted by kovidgoyal
No plugins are book wide only. If you wish to run it only only the currently opened file, you can do so by simply restricting the files your plugin processes. Get the name of the file like this
from calibre.gui2.tweak_book import editor_name
name = editor_name(self.gui.current_editor)
|
Thanks. Should the second line be:
Code:
name = editor_name(self.gui.central.current_editor)
Or did I miss something?