View Single Post
Old 06-06-2023, 01:16 PM   #7
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,453
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by emphyrion View Post
Hello @kovidgoyal,

Thank you for your answer.
As a Python developer, do you think I would be able to create a plugin that does what I need?
Just wondering, I didn't check yet how Calibre Plugins are made.
Thank you,

Emphyrio
You can use the Action Chains plugin Single Field Edit action to clear the tags (or any other field/fields) with a single keystroke. You can then use D&D to add the tag you want. Or the same Action Chains action can prompt you for the tag and add it to the book. Action Chains doesn't support D&D.

I don't think it is practical to write a plugin that supports D&D to the tag browser. I think it would require "monkey patching" the existing D&D methods in the tag browser's model class. Or running calibre from source and modifying the tag browser to do what you want.

Ask in the Action Chains thread if you need help with it.
chaley is offline   Reply With Quote