Option to automatically run 'exec' on opening a file
Use-case: I have a database of PDF documents, and mostly I open them via database-related commands, using Zathura as the viewer. This allows me to save the last-opened timestamp for each document. Occasionally, however, I open documents from CLI or file manager, and in this case the fact of opening a document is not recorded in the database. If Zathura allowed running a specified command automatically when opening a file (expanding $FILE
as usual), that could solve the problem. (Of course, I can map a key to such a command, but then I need to remember to use that key each time I open a doc; it would be nice to automate the process).