View Single Post
Old 12-17-2020, 01:07 PM   #116
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 chaley View Post
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 View Post
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 View Post
For fun, it also implements for loops. Example:
That is something I wondered about. Will certainly useful for a lot people .
capink is offline   Reply With Quote