Hello,
I am stuck with something I cant find a solution.
I am doing a duplicate search, find a duplicate file, select it and click on a button. This button should open a new tab, the original selected file should still be selected/or somehow re-selected and it should be placed at the top of the window, first file so to speak.
I have this button working so far:
Clipboard COPYNAMES=nopaths
Go NEWTAB TABPOS=+1
Set VIEW=Thumbnails
but I am stuck with the rest: how can I re-select a file from a clipboard contend and what is the code to show this file as "first file" in list?
Huh? o) Shouldn't it be a combination of what Leo and I suggested and what you already had?
Something like this (but after trying I see, it does not work, it does not open a new tab for me).
Clipboard COPYNAMES=nopaths
Go OPENCONTAINER NEWTAB=findexisting VIEW=thumbnails
SelectEx EXACT FROMCLIP MAKEVISIBLE
This does, though I actually don't understand why.
I would expect the SelectEx command to act on the old tab, instead of selecting nicely within the new one.
Clipboard COPYNAMES=nopaths
Go NEWTAB TABPOS=+1
Set VIEW=Thumbnails
SelectEx EXACT FROMCLIP MAKEVISIBLE
My one-line command will select the file and make it visible on its own. No need to combine it with anything (unless you also want the path in the clipboard, of course).
Ok, now I think I understand how it's supposed to work.
This is basically the same behaviour as pasting a path from a file into the path-bar, right?
But for some reason it does not work here, none of these work for a selected file:
Can you think of why that is?
Go OPENCONTAINER NEWTAB=findexisting VIEW=thumbnails
Go OPENCONTAINER NEWTAB VIEW=thumbnails
Go OPENCONTAINER VIEW=thumbnails
[quote]But for some reason it does not work here, none of these work for a selected file:
Can you think of why that is?
Go OPENCONTAINER NEWTAB=findexisting VIEW=thumbnails
Go OPENCONTAINER NEWTAB VIEW=thumbnails
Go OPENCONTAINER VIEW=thumbnails[/quote]
Hmm, I have Preferences / Miscellaneous / Advanced: open_container_in_tabs set to True. Only setting that I can think of.
It's possible your script(s) that run on folder change are cancelling it, maybe? Worth a try disabling them to see if it's that.
There may also be a timeout where the folder taking a long time to read/sort/etc. could cancel the selection. (Not sure about that, but if it's taking more than a couple of seconds to load, might be wroth trying with a smaller folder in case it is that.)
I tried enabling that advanced setting you have enabled, it does not make a difference, the GO commands do nothing here despite deselecting the file.
I also cannot see any script kicking in. I did not empty my scripts folder beforehand though, as I had strange results the last time I did (messed up script-configs and zombie-columns). The folder taking too long to read can be excluded I guess, the locations I tested with were not very populated with items.
I think it's an interesting approach to keep a selection and get a different view on it, especially since it does not rely on several commands and a lot of scripting involved.
It's probably noticeably faster as well, a pitty it won't do here! o)