Quote:
Originally Posted by chaley
I went ahead and implemented globals in the formatter. The safe_format parameter signature is now:
|
Thank You

. I will test tonight as soon I have the time. First mission is to remove the update_metadata and replace with template globals.
Quote:
Originally Posted by chaley
Sounds good. One question: what if the value isn't in the dict? Is that an error or no match?
|
I haven't decided on that. One option I am evaluating is to defer this to the user. Make clicking on the condition column pop up a template dialog, the user defines his own logic and tests, the template returns a true/false which should guide the plugin on whether to execute the action. The column should display an ellided template with a reasonable width. If the user wants a clue to what the template does, he should used a stored template e.g program: my_kobo_device(), this should be visible in its entirety as clue to when this action runs.
Quote:
Originally Posted by chaley
For fun, it also implements for loops. Example:
|
That is something I wondered about. Will certainly useful for a lot people

.