Page 1 of 1

Incorrect display after moving a file from split

Posted: 19 Jul 2024 18:40
by Sander Bouwhuis
After moving a file from one directory to another, I regularly see visual bugs.
It's not a big issue, but it is confusing.

1. Files are shown twice instead of once
2. Directories and files from the other side (split) are shown in the list
XYPlorer bug.png
XYPlorer bug.png (137.97 KiB) Viewed 1459 times
It's not a big issue (pressing F5 fixes it).

Re: Incorrect display after moving a file from split

Posted: 20 Jul 2024 10:16
by admin
What?! I have never seen anything like this. Can you give steps to reproduce it?

Re: Incorrect display after moving a file from split

Posted: 20 Jul 2024 19:45
by Sander Bouwhuis
It's only a visual bug, so it's not a big issue. F5 on both sides fixes the problem.

1. Split the tab
2. Cut a file from one side
3. Paste the file to the other side
4. Display is a mess

Example 1
After pasting, both sides are completely wrong.
1. At 0:04, the left side contains every file twice
2. At 0:05, the right side is missing all its entries (only 1 directory is shown)
XYPlorer Bug.gif
XYPlorer Bug.gif (777.76 KiB) Viewed 1413 times
Example 2
After pasting, both sides are completely wrong
1. At 0:06, the right side contains every file twice
2. At 0:10, the left side also becomes all messed up
XYPlorer bug 2.gif
XYPlorer bug 2.gif (478.04 KiB) Viewed 1411 times

Re: Incorrect display after moving a file from split

Posted: 20 Jul 2024 20:41
by admin
Cannot reproduce, but a lot of relevant information is missing. Can you give steps for a fresh instance?

Re: Incorrect display after moving a file from split

Posted: 20 Jul 2024 21:49
by Sander Bouwhuis
I don't know what a 'fresh instance' is.
I regularly move files, and it happens about one in ten times or so.
You see what I do. There are no 'magic' steps. I literally showed in the video that I move a file, and then sometimes the display goes haywire.

Maybe it has to do with these two custom columns I always use:
Dirs column.png
Dirs column.png (8.49 KiB) Viewed 1396 times
Files column.png
Files column.png (8.3 KiB) Viewed 1396 times

Re: Incorrect display after moving a file from split

Posted: 21 Jul 2024 10:15
by admin
Ah, that's what I thought. Relevant things are happening in the background. You use scripted columns that run a deep process for each listed folder. You also use background copy threads.

A first question would be: Why are you scripting folder sizes when you could just turn them on from the GUI?

Re: Incorrect display after moving a file from split

Posted: 21 Jul 2024 12:45
by Sander Bouwhuis
Because the default one doesn't work (at least, they didn't used to when I looked at it years ago).
Are you saying I can get the split columns by other means?
I want to keep the file and directory count separate because I want to be able to sort on them.

Please tell me how I can set it up 'natively'. Currently, the calculations are quite slow. So, if a 'native' way is faster with the same result, that would be great!
Also, the calculations of the scripts are not done in the background, so I always have to wait for them. If they couldn't run in the background and just show me the result when ready, it would be MUCH faster.

Re: Incorrect display after moving a file from split

Posted: 21 Jul 2024 12:53
by admin
1) What kind of sorting are you looking for that cannot be achieved with a single Size column?

2) With the Size column you can use folder size caching.

Re: Incorrect display after moving a file from split

Posted: 22 Jul 2024 08:22
by Sander Bouwhuis
Which column do I need to use to count the amount of directories and files in a directory?
I tried the 'File count' column, but it doesn't do anything:
XYPlorer Column Doesn't Work.png
XYPlorer Column Doesn't Work.png (75.43 KiB) Viewed 1328 times

Re: Incorrect display after moving a file from split

Posted: 22 Jul 2024 08:59
by admin
File count is some shell property, I would have to google it to find out what it's supposed to do.

So you're after the file count. Okay, in that case you have to use Custom Columns indeed.