Resort on Rename

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Quaraxkad
Posts: 180
Joined: 20 Apr 2014 18:01

Resort on Rename

Post by Quaraxkad »

I've found a situation where the disabled option "Resort list immediately after rename [Sort and Rename - Rename]" does not seem to be honored. I am able to reproduce the problem with a ::fresh instance of XY, where the above setting is disabled by default. I created a test folder on my C drive, inside a new text file named t.txt. Then another new text file named z.txt, after the rename the list remains in order z,a. This is the expected behaviour. However, if I do the same test on my V drive, which is a mapped network share, the list is immediately resorted to a,z. The same occurs when both creating new files and renaming existing files

Is there another option that affects network locations?

Quaraxkad
Posts: 180
Joined: 20 Apr 2014 18:01

Re: Resort on Rename

Post by Quaraxkad »

Can anybody confirm this behaviour, or is it just me?

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Resort on Rename

Post by highend »

Yeah, happens here as well
One of my scripts helped you out? Please donate via Paypal

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

Re: Resort on Rename

Post by admin »

Not here (Win8.1). Which Windows?

Quaraxkad
Posts: 180
Joined: 20 Apr 2014 18:01

Re: Resort on Rename

Post by Quaraxkad »

Win 11 here, and the computer with the shared folder is Server 2008 R2 if that matters. I saw a thread before where you explained how to turn on and view logging for file system messages that triggered resorts or refreshes. Do you want me to do that? I don't remember the commands to do it or what thread I saw that in.

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Resort on Rename

Post by highend »

Win 10 as the client and the Samba is the share server on NixOS Linux

R:\test is a local drive (a ram disk)
Z:\test is a share mounted as a drive letter
Animation.gif
Animation.gif (385.98 KiB) Viewed 5601 times
One of my scripts helped you out? Please donate via Paypal

Quaraxkad
Posts: 180
Joined: 20 Apr 2014 18:01

Re: Resort on Rename

Post by Quaraxkad »

Found it. Not sure if it's of any use. I created a file and named it x.txt, then created a file and named it z.txt. In Pane 1 on the C drive, z remained above x. In Pane 2 on the mapped network V drive z moves under x about half a second after naming. Tested using a ::fresh instance.

Code: Select all

        0  -  2022-03-27 10:19:56.514  ---  WatchDir IN: 0 | 1 | C:\test
        0  -  2022-03-27 10:19:56.514  ---  WatchDir OUT: Change detected [Pane 1]: Type 1 (0x1) | 
  Exit1: IsRenaming
  Exit2: path not listed in Pane 2
      325  -  2022-03-27 10:19:56.839  ---  ShellNotify: SHCNE_CREATE: C:\test\New Text File.txt | New Text File.txt >  | 
  --------------------------------------------------------------------------------------------------
    5.172  -  2022-03-27 10:20:02.011  ---  ShellNotify: SHCNE_RENAMEITEM: C:\test\New Text File.txt | New Text File.txt > C:\test\x.txt | x.txt
      905  -  2022-03-27 10:20:02.917  ---  WatchDir IN: 0 | 1 | C:\test
        0  -  2022-03-27 10:20:02.917  ---  WatchDir OUT: Change detected [Pane 1]: Type 1 (0x1) | 
  Exit1: IsRenaming
  Exit2: path not listed in Pane 2
      303  -  2022-03-27 10:20:03.220  ---  ShellNotify: SHCNE_CREATE: C:\test\New Text File.txt | New Text File.txt >  | 
      921  -  2022-03-27 10:20:04.142  ---  ShellNotify: SHCNE_RENAMEITEM: C:\test\New Text File.txt | New Text File.txt > C:\test\z.txt | z.txt
  --------------------------------------------------------------------------------------------------
    3.179  -  2022-03-27 10:20:07.321  ---  WatchDir IN: 1 | 1 | V:\test
        0  -  2022-03-27 10:20:07.321  ---  WatchDir OUT: Change detected [Pane 2]: Type 1 (0x1) | 
  Exit1: path not listed in Pane 1
  Exit2: IsRenaming
      396  -  2022-03-27 10:20:07.717  ---  ShellNotify: SHCNE_CREATE: V:\test\New Text File.txt | New Text File.txt >  | 
    1.330  -  2022-03-27 10:20:09.047  ---  WatchDir IN: 1 | 1 | V:\test
        0  -  2022-03-27 10:20:09.047  ---  WatchDir OUT: Change detected [Pane 2]: Type 1 (0x1) | 
  Exit1: path not listed in Pane 1

      120  -  2022-03-27 10:20:09.167  ---  ShellNotify: SHCNE_RENAMEITEM: V:\test\New Text File.txt | New Text File.txt > V:\test\x.txt | x.txt
      496  -  2022-03-27 10:20:09.663  ---  WatchDir IN: 1 | 1 | V:\test
        0  -  2022-03-27 10:20:09.663  ---  WatchDir OUT: Change detected [Pane 2]: Type 1 (0x1) | 
  Exit1: path not listed in Pane 1
  Exit2: IsRenaming
      429  -  2022-03-27 10:20:10.092  ---  ShellNotify: SHCNE_CREATE: V:\test\New Text File.txt | New Text File.txt >  | 
      508  -  2022-03-27 10:20:10.600  ---  WatchDir IN: 1 | 1 | V:\test
        0  -  2022-03-27 10:20:10.600  ---  WatchDir OUT: Change detected [Pane 2]: Type 1 (0x1) | 
  Exit1: path not listed in Pane 1

      335  -  2022-03-27 10:20:10.935  ---  ShellNotify: SHCNE_RENAMEITEM: V:\test\New Text File.txt | New Text File.txt > V:\test\z.txt | z.txt

klownboy
Posts: 4397
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Re: Resort on Rename

Post by klownboy »

So we are all on the same page (especially me), are we talking about renaming and then clicking on white space or are we talking renaming and pressing enter? For me on local drives, it never resorts unless I hit enter after the rename (with resort immediately after rename). I actually like that distinction since it's helpful to see the file renamed at it's present location before it's moved (resorted).

Quaraxkad
Posts: 180
Joined: 20 Apr 2014 18:01

Re: Resort on Rename

Post by Quaraxkad »

I just checked, it resorts in both scenarios, either renaming and pressing enter or renaming and clicking empty space.

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

Re: Resort on Rename

Post by admin »

I tried it in Win10 but could not reproduce it. Tried a fresh instance as well. :| Cannot do anything.

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Resort on Rename

Post by highend »

Is auto-refresh the culprit? If I disable it via View - Auto-Refresh

it doesn't do the resorting on the network drive...
One of my scripts helped you out? Please donate via Paypal

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

Re: Resort on Rename

Post by admin »

Auto-Refresh was enabled here.

Quaraxkad
Posts: 180
Joined: 20 Apr 2014 18:01

Re: Resort on Rename

Post by Quaraxkad »

I did some experimenting with fresh portable old versions and found that XYplorer 22.60.0200 does *not* exhibit this bahiour; everything after does. Furthing digging in the beta forum thread narrowed it down further, up to xyplorer_22.70.0016_beta_noinstall does *not* exhibit thiss behaviour; xyplorer 22.70.0017_beta_noinstall and later does. There's nothing in the changelog to suggest anything about resorts was changed, but I went back and forth between these two versions multiple times and confirmed it.

Anything more I can do to help locate the issue?

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

Re: Resort on Rename

Post by admin »

That's probably because of this change:
viewtopic.php?p=195192#p195192
It enables Configuration | General | Refresh, Icons, History | Auto-Refresh | Include network locations by factory default.

But even with this enabled I cannot reproduce it here.

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Resort on Rename

Post by highend »

As long as Configuration | General | Refresh, Icons, History | Auto-Refresh | Include network locations
is ticked, it does the resorting, once it's off, it stops...

What backend is serving your files on your network, Don?
One of my scripts helped you out? Please donate via Paypal

Post Reply