View Single Post
Old 07-03-2024, 03:22 AM   #93
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,223
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by zencricket View Post
I have some editor chain actions defined and working from the editor, but when I try to get them to run from the action chain plugin nothing happens.
Not all editor chains can be run from action chains. This depends on the actions as well as the settings of individual actions. This happens mainly when an action depends on elements of Editor GUI which won't be available when run from Action Chains.

For example, a chain containing an action like "Mark Cursor Tag" will not run at all because that action always depends on elements of the editor GUI, which are not available in Action Chains.

Another example of this, is an action (e.g. Search And Replace), configured with a scope that depends on the editor GUI, e.g. "current file" or "selected files". You can run the same action from Action Chains with a scope that does not depend on the Editor's GUI, e.g. "text files"

Quote:
Originally Posted by zencricket View Post
I did get one action to work by defining a new editor chain action in the action chain UI, but nothing happens if I use an event to trigger it.
Run calibre in debug mode and post the output.
Quote:
Originally Posted by zencricket View Post
The new editor chain action also does not show up in the editor chain plugin. I don't want to have to maintain two separate definitions.
If you want to have only one version, you must define it in the editor. Editor Chains cannot be aware of chains defined outside it.

Last edited by capink; 07-03-2024 at 03:53 AM.
capink is offline   Reply With Quote