pqiv icon indicating copy to clipboard operation
pqiv copied to clipboard

Command incompatible with current file type

Open Essoje opened this issue 3 years ago • 1 comments

Attempting to use command() or numeric_command(1) while viewing an image from inside an archive like a zip will result in this message. If this is the expected behavior, please consider changing it; if it's not, please fix this. I'm sure it's obvious, but being able to use external commands is quite valuable. Sometimes I need to open the specific subfolder where the current image resides and it works with images, but I'm unable to use this on archives because of this behavior.

Essoje avatar Nov 25 '21 16:11 Essoje

The reason for this behavior is that there's no obvious way to pass the offset into the image container to the command. I guess we could introduce a few extra variables to extend the behavior, e.g. $file is substituted with the container, $offset with the offset into the container, $display_filename with the name displayed to the user, etc., and then only display the error if a user doesn't make use of any of these variables.

phillipberndt avatar Nov 29 '21 16:11 phillipberndt