Enhacement Request: plugins in context menu of tag browser
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Charles Haley |
Bug Description
Would be nice if plugins can add their own entries to the tag browser context menu, in the same way plugins have their entries in the library view context menu. I can do this by editing the source and adding the following:
def add_plugins_
print('Adding plugins tag browser context action')
for ac in gui.iactions.
try:
if hasattr(ac, 'tag_browser_
if context_action:
except Exception:
import traceback
The plugin will use the index to determine whether it have any action for this particular node, if it does the method returns a QAction, otherwise, it returns None.
It would be easier if something like this is included in calibre without having to edit the source.
Changed in calibre: | |
status: | New → Fix Committed |
Where do you put that code? In gui2.tag_ browser. view?