Show LISTERLINK and multiple selected images

Hi,

I'm having some issues with Show LISTERLINK when I'm selecting multiple images. Not sure if it's a bug, or if I need to modify my arguments or settings to make it do what I want :slight_smile:

For Dopus 12 I used the Viewer Select - Make file display track standalone viewer script. This script still works well with multiple selected images in Dopus 13, but I'd much rather use the native function since it can be toggled much more easily.

What I want to happen when I run Show LISTERLINK on multiple selected images (which is how the Dopus 12 script worked):

  • Only the selected images are populated in the "next / previous" list in the viewer.
  • When changing the image in the viewer, the selected image will be tracked in the lister.
  • (I understand that the original multiple-selection in the lister will be "killed" by the tracking.)

For these tests I have the setting Link both ways (file display selection tracks Lister-
linked viewer)
activated.

(This is using v13.10.)

Test 1:

  1. Imagine having 4 images in a folder.
  2. Select image 2-3 in the lister.
  3. Run Show LISTERLINK
  4. Hopefully image 2 is displayed in the (stand-alone) viewer, and tracked in the lister.
  5. Advancing to the next image in the viewer will display image 3, which is tracked, so far so good.
  6. Advancing to the next image in the viewer again will now however display and track image 4, which should be out-of-bounds IMHO.
  7. Close the viewer (while still displaying/tracking image 4).

Do I need to add any arguments to make it only populate image 2-3 in the viewer "next / previous" list..? I've tried using FILE={allfile$} argument, but it didn't help and I would think it shouldn't be needed anyway.

Test 2 (continuing from Test 1 last state):

  1. Reselect image 2-3 in the lister (instead of the currently selected image 4).
  2. Run Show LISTERLINK
  3. Image 4 is now showed in the viewer.

By closing the viewer, I would expect the lister-link to be closed as well, which the documentation also suggests, but it seems to continue from the last tracked image, and displaying an image that wasn't even selected.

Instead of closing the viewer normally (in lieu of Test 1: Step 7), I've tried closing it with Show LISTERLINK=close, but that doesn't make a difference, and probably shouldn't be needed..?

I've also tried Show LISTERLINK=toggle, but couldn't see any difference in the results.

I've also tried combinations of AUTOFILELIST and/or LISTSIBLINGS without any difference, but if I understand correctly, they shouldn't be needed (or be in effect) when selecting multiple images.

I've also tried it with Link both ways (file display selection tracks Lister-linked viewer) deactivated, but that only turns off the tracking (as it should) and doesn't affect the population list or the viewer displaying the wrong image, at least from my tests.

Here is a menu with some buttons used in my tests, for quick setup:

<?xml version="1.0"?>
<button backcol="none" display="both" dropdown_glyph="yes" icon_size="large" label_pos="right" textcol="none" type="menu">
	<label>Show LISTERLINK test</label>
	<icon1>#show</icon1>
	<button backcol="none" display="both" icon_size="large" label_pos="right" textcol="none">
		<label>Show LISTERLINK</label>
		<icon1>#show</icon1>
		<function type="normal">
			<instruction>Show LISTERLINK</instruction>
		</function>
	</button>
	<button backcol="none" display="both" icon_size="large" label_pos="right" textcol="none">
		<label>Show LISTERLINK=close</label>
		<icon1>#show</icon1>
		<function type="normal">
			<instruction>Show LISTERLINK=close</instruction>
		</function>
	</button>
	<button backcol="none" display="both" icon_size="large" label_pos="right" textcol="none">
		<label>Show LISTERLINK=toggle</label>
		<icon1>#show</icon1>
		<function type="normal">
			<instruction>Show LISTERLINK=toggle</instruction>
		</function>
	</button>
	<button backcol="none" display="both" icon_size="large" label_pos="right" textcol="none">
		<label>Show LISTERLINK AUTOFILELIST</label>
		<icon1>#show</icon1>
		<function type="normal">
			<instruction>Show LISTERLINK AUTOFILELIST</instruction>
		</function>
	</button>
	<button backcol="none" display="both" icon_size="large" label_pos="right" textcol="none">
		<label>Show LISTERLINK AUTOFILELIST LISTSIBLINGS</label>
		<icon1>#show</icon1>
		<function type="normal">
			<instruction>Show LISTERLINK AUTOFILELIST LISTSIBLINGS</instruction>
		</function>
	</button>
	<button backcol="none" display="both" icon_size="large" label_pos="right" textcol="none">
		<label>Show LISTERLINK LISTSIBLINGS</label>
		<icon1>#show</icon1>
		<function type="normal">
			<instruction>Show LISTERLINK LISTSIBLINGS</instruction>
		</function>
	</button>
</button>

This isn't related to LISTERLINK at all (I reckon), but selecting and opening multiple marked images at the same time also has some weird behaviour in the viewer.

This is with Check for marked pictures when viewer is opened setting enabled.

  1. Using the same 4 images as before, select them all, and open them normally with the plain Show command.
  2. Advance to image 2, and mark it. A star should be visible in the top-left corner.
  3. Advance to image 4, and mark it. A star should be visible in the top-left corner.
  4. Close the viewer.
  5. Keep all four images selected and reopen them.
  6. If you advance through the four images in the viewer, none of them show the star in the corner, thus not indicating that any of them are marked.

If you select and open just one of the images, and advance through the four images, it works as intended and image 2 and 4 will have a star in the corner.

(Sorry to reuse the same topic for two different issues, but since it triggers from the same scenario, I'd reckon it could be convenient to look at both issues at the same time, since it might stem from the same problem. Please let me know if you want me to create a separate topic for this issue.)

EDIT:
I just noticed that this problem only triggers when using Enter to open the selected images. Using a button with Show will show the star in the corner even when selecting multiple images.

Is this an issue with my system and what triggers when pressing Enter..? I'm not really sure exactly what Dopus does when Enter is used since I think it talks with Windows to know what problem to launch..?

However, if I set the Show command for Left double-click + Ctrl for the 'Images' File Type Group, and then select all four images and press Ctrl+Enter, the issue of not showing the star for marked images is still there.

And only selecting one images and pressing Enter will show the star for marked images as intended, so it's still not consistent either way.

(Again, sorry to clutter up this topic, especially after the new finding. Please let me know if I should separate these issues, but I'll wait for a response first since you might still find that the problems are linked.)

The image list for a lister-linked viewer will be the the full list of files in the file display it's linked to. I don't think there's a way to restrict it to a subset like you can with a non-linked viewer.

(It'd also get confused if you selected something that wasn't in the initial selection, although I guess we could make it take on the full list at that point, instead of preemptively. Similar to how it changes the list if you navigate to another folder and click on a new file there. I'll put it on the ideas list!)

Definitely something strange going on there. I've made a note to take a look in detail when we have a chance.

1 Like

Ah, ok, I really liked how your script for Dopus 12 worked consistently with non-linked viewers for only including selected images in the list. To me that feels like a more correct functionality, since (again) it's more consistent, and I would really only expect it to work differently if I had used AUTOFILELIST and/or LISTSIBLINGS to "forcibly break out" of the selection.

And yes, "magically" opening an image I didn't even select did throw me off quite a bit, as I was working with quite a large folder of images, and thought I was going mad or had accidentally renamed the all the wrong images :sweat_smile:

Here's hoping you can make a command or argument to restrict the LISTERLINK to the selection in the future, to support both scenarios. But we can still use the old script instead of the native function if we want the other functionality I guess, and use the Prefs command to toggle it as needed. Either way, thanks for having a look! :slight_smile:

Cheers! Let me know if you need any further testing or verification on it.