-
Notifications
You must be signed in to change notification settings - Fork 261
Can't call a script on multiple images #13
Comments
I'm not sure how I should handle multile file path arguments to external scripts/commands. The first possible approach is to have only one 'it_' command for everything. This command could then use the environment variables SXIV_IMG and SXIV_SEL_IMGS (or something like that) to refer to the current image or all selected images. This would be powerful but maybe error-prone, because the latter variable would be empty, if no images are selected. The second approach is to have a new 'it_' command next to it_open_with & it_shell_cmd which only differs from it_shell_cmd in using SXIV_SEL_IMGS instead of SXIV_IMG. For both approaches one more problem has to be solved: How to select multiple images? In image mode a selected image could be marked with a special character in the title string. But I'm not sure what easy (easy as in easy to do with pure Xlib) approach should be taken to mark selected images in thumbnail mode. Any ideas? |
Bert Münnich a écrit :
I'm not sure neither.
Maybe the simplest solution would be to draw a border (with configurable color) around each selected image? |
In fact, I think the elegant way of representing the selection visually I'm not sure if this feature is really important after all. |
Seems not important enough to me. I will not implement this. |
I would be nice to have a way to call a user script with multiple images passed as arguments.
At the moment, only the currently viewed image can be acted on.
The text was updated successfully, but these errors were encountered: