FlatView and SyncSelect Newer

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

FlatView and SyncSelect Newer

Post by fishgod »

Hello,

I've experiencing some strange Behavior with the Sync Select feature.

I was comparing two folders, 1st Pane: local folder, 2nd Pane: Same folder on differnt Device via SMB
Both Panes are shown in FlatView. Each Pane was showing ~13000 items.

When I now use the SyncSelect : Newer / Uniques and Newer command, some files get selected with actually have the same date and time.
The Date and Time shown in XY and Windows-Explorer are exactly the same for the file on both devices (for Created, Modified and Accessed).
The files are also exactly the same in size and content (xy-compare-function)

The strange part is, that there seems to be no regularity in what files are getting falsely selected.
Round about 2500 files out of the ~13000 files get selected.
Sometimes all files in a folder, and none for other folders, but somtimes also single files in folders...

The good thing is that going to a folder with a file in it (which gets falsely selected) on both panes
with FlatView off, doesn't reproduce the selection bug when using SyncSelect : Newer.
So it seem so be somehow related to FlatView

I'am using XY v10.60.0117 on Win7 x64



And a few things in general to the SyncSelect-Feature:

Minor Issue:
In my task it took 20sec for the selection... (ok, its a big folder and it's on the network...)
But there could be some user-featback, that the app is working... On the first attemt, I thought XY may have crashed
(Could be in the Status-bar... like when searching)

GUI-Development:
I saw in the Scripting-Help that you can add and remove from current selection and wondert where the GUI for that is.
Looking up in the Help-File it says using CTRL or SHIFT while clicking the OK-Button will do it.
OK, the good thing is, it is fully documented. (You even inserted a InfoTipp to the Button, ThumbUp)
But the bad thing is that holding down CTRL/SHIFT while clicking on OK is really unintuitive and I think I havent seen something like that in other applications.
Besides: We have the same thing with resetting the Background-Color for Tags. I've really searched long, the days Tags where new, to figure out how to reset the background...
Why not just add somthing like a Label "Current Selection" and a DropDown or 3 Radio-Buttons with the entries "Drop", "add Matches" and "remove Matches"? Please tell me one good reason :D

Last but not Least:
FlatView + SyncSelect is really a killer-feature and using XY every day is really a pleasure to me :)
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

Re: FlatView and SyncSelect Newer

Post by fishgod »

OK, I think I figured out what happens:

I was comparing my Photo-Folder between PC and Latop and a filenames like IMAG0193.JPG
simply exists multiple times on the other pane.

So we maybe need an additional Flag with the SyncSelect-function which enshures path-equallity (inside the FlatView-root) for compared files when using FlatView.
Will this be possible?
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

admin
Site Admin
Posts: 67332
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: FlatView and SyncSelect Newer

Post by admin »

fishgod wrote:So we maybe need an additional Flag with the SyncSelect-function which enshures path-equallity (inside the FlatView-root) for compared files when using FlatView.
Will this be possible?
OK, I will check that later.

admin
Site Admin
Posts: 67332
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: FlatView and SyncSelect Newer

Post by admin »

OK, I have to admit that I personally never use sync select (I never became dual paner), so I don't really know what is expected.

Question: Are you sure that taking the relative flat view paths into account is always desired by every user?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: FlatView and SyncSelect Newer

Post by TheQwerty »

admin wrote:Question: Are you sure that taking the relative flat view paths into account is always desired by every user?
I'm not sure, but I'll throw my "seems logical" hat into the "desired by" circle.

It's still not perfect and I have one thought to make it better but it's rather complicated, would be difficult to code, slow to run, would only get you closer to perfection without achieving it, and I imagine the "desired by" and "not desired by" circles would be closer in size making its behavior more controversial.

fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

Re: FlatView and SyncSelect Newer

Post by fishgod »

admin wrote:Question: Are you sure that taking the relative flat view paths into account is always desired by every user?
Might not *allways* be the usecase. I can image a case where I want to merge two folders with differnt structure but uniqe filename.
There I would like to compare the FlatView without taking the pathes into account. Thats why I said this could be optional.

Adding a checkbox (like: [ ] respect relative Pathes in FlatView) to the SyncSelect-Dialog would be totaly fine in my eyes.
Or exactly the oposite if the more common task should be to use pathes and disable it via Checkbox, your decision...
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

admin
Site Admin
Posts: 67332
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: FlatView and SyncSelect Newer

Post by admin »

fishgod wrote:
admin wrote:Question: Are you sure that taking the relative flat view paths into account is always desired by every user?
Might not *allways* be the usecase. I can image a case where I want to merge two folders with differnt structure but uniqe filename.
There I would like to compare the FlatView without taking the pathes into account. Thats why I said this could be optional.

Adding a checkbox (like: [ ] respect relative Pathes in FlatView) to the SyncSelect-Dialog would be totaly fine in my eyes.
Or exactly the oposite if the more common task should be to use pathes and disable it via Checkbox, your decision...
OK.

Would an array of 3 choices work?:
1. Normal
2. Ignore extensions
3. Respect relative paths

Or would we also need the combination "Ignore extensions" AND "Respect relative paths"??

admin
Site Admin
Posts: 67332
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: FlatView and SyncSelect Newer

Post by admin »

OK, could not wait, made my decisions: I (for now) hard-coded it to respect the relative paths if both lists are in Find mode (which includes Flat View). Works nicely. :)

EDIT: made it a tweak.

admin
Site Admin
Posts: 67332
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: FlatView and SyncSelect Newer

Post by admin »

BTW, conc. the speed of SyncSelect: each file is compared with each file of the other list. So the time increases with the product of the sizes of the lists.

fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

Re: FlatView and SyncSelect Newer

Post by fishgod »

admin wrote:BTW, conc. the speed of SyncSelect: each file is compared with each file of the other list. So the time increases with the product of the sizes of the lists.
I kind of thoght that...
Technically you can get a better time-complexity than n² for n items. By using a Heap-Sort you should at least get n*log(n)...

But I wasn't complaning about the speed, I perceive that my huge folder over the network can't be that fast, the thing is that XY could do a little user-featback. When using the search, the statusbar shows how many items are gound until now and such stuff, instead of just blocking the app until the process is finished. It's more a general thing for every process that takes up over a few seconds without showing the user that the app is allright and just need time to work...
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

admin
Site Admin
Posts: 67332
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: FlatView and SyncSelect Newer

Post by admin »

Speed: Yes, I might add something later.

And what about the new tweak? Works as expected? Should it be the factory default? Should it be raised to GUI level?

admin
Site Admin
Posts: 67332
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: FlatView and SyncSelect Newer

Post by admin »

admin wrote:Speed: Yes, I might add something later.

And what about the new tweak? Works as expected? Should it be the factory default? Should it be raised to GUI level?
fishgod, speak to me...

Post Reply