View Single Post
Old 04-22-2021, 06:32 AM   #4
Xwang
Connoisseur
Xwang ought to be getting tired of karma fortunes by now.Xwang ought to be getting tired of karma fortunes by now.Xwang ought to be getting tired of karma fortunes by now.Xwang ought to be getting tired of karma fortunes by now.Xwang ought to be getting tired of karma fortunes by now.Xwang ought to be getting tired of karma fortunes by now.Xwang ought to be getting tired of karma fortunes by now.Xwang ought to be getting tired of karma fortunes by now.Xwang ought to be getting tired of karma fortunes by now.Xwang ought to be getting tired of karma fortunes by now.Xwang ought to be getting tired of karma fortunes by now.
 
Posts: 77
Karma: 2136220
Join Date: Sep 2012
Device: none
Quote:
Originally Posted by capink View Post
There is a workaround to this in the Action Chains plugin. The chain to run you program is attached to this post. (Action chains > add/modify chains > import).

You will need to edit the template in the first action (Copy To Clipboard) to replace the "#my_int_col" with your custom column name.

The attached chain constructs a temporary shell script containing the appropriate command, and then runs it.

Next version of the plugin will allow using template for command arguments.
Is it possible to add bash stile if logic so that to check if the custom column last read page is present or not?
I've a huge library and the value is populated only for files which I've read or I'm reading currently.

EDIT: I've seen it is not possible and so I've changed the "#my_int_col" with
ifempty($#last_read_page, 1)
Is it correct?
The issue is that I do not seen any additional button or contextual menu entry and it seems to ignore the plugin and keep calling okular directly.
Maybe I've done something wrong?

Last edited by Xwang; 04-22-2021 at 06:51 AM.
Xwang is offline   Reply With Quote