Auto-refresh only works if you press enter key

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
admin
Site Admin
Posts: 67108
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Auto-refresh only works if you press enter key

Post by admin »

OK, let's not make it too complicated. I changed the code. From now on I DO allow immediate resort after rename through focus loss. With the necessary exception of "serial rename" (using the TAB key) though which would become totally crazy with resort after each rename.

We'll see when the first complaints are heard from the "other side" of the argument... :wink:

UPDATE: Well, forget it! I was too fast. Some tests brought up additional points against the immediate resort. Look at this thread:
http://www.xyplorer.com/xyfc/viewtopic.php?t=1806
These problems can only be handled if immediate resort does not happen.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Auto-refresh only works if you press enter key

Post by zer0 »

What you've discovered seems to make the implementation of auto-resort more difficult. However, the fact that Windows Explorer manages to do that is sort of indicative that it's possible to balance both without negatively affecting the functionality.

Also, it seems that restrictions on how this option in Configuration settings operates keep piling up. Initially, it was only if you press the Enter key. Now file selection is affected through bad set of focus. I think there are only 3 paths to take: a) leave things as they are right now b) remove this option from settings altogether c) persevere and try to make it work like it does on WE.

Of course, it's all up to Don :)
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

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

Re: Auto-refresh only works if you press enter key

Post by admin »

zer0 wrote:What you've discovered seems to make the implementation of auto-resort more difficult. However, the fact that Windows Explorer manages to do that is sort of indicative that it's possible to balance both without negatively affecting the functionality.

Also, it seems that restrictions on how this option in Configuration settings operates keep piling up. Initially, it was only if you press the Enter key. Now file selection is affected through bad set of focus. I think there are only 3 paths to take: a) leave things as they are right now b) remove this option from settings altogether c) persevere and try to make it work like it does on WE.

Of course, it's all up to Don :)
I'm not aware that WE does this at all. :? Mine at least never resorts after rename (XP SP3).

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Auto-refresh only works if you press enter key

Post by zer0 »

admin wrote:I'm not aware that WE does this at all. :? Mine at least never resorts after rename (XP SP3).
My apologies. I was under the impression that me linking to a thread about Windows Vista's Windows Explorer's behaviour in these situations on the previous page was, in a way, a confirmation that it is indeed Windows Vista that I am talking about. While I haven't had time to play with Windows 7 RC just yet, I imagine that WE in 7 will continue to be like it is in Vista in terms of its resorting behaviour.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

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

Re: Auto-refresh only works if you press enter key

Post by admin »

zer0 wrote:
admin wrote:I'm not aware that WE does this at all. :? Mine at least never resorts after rename (XP SP3).
My apologies. I was under the impression that me linking to a thread about Windows Vista's Windows Explorer's behaviour in these situations on the previous page was, in a way, a confirmation that it is indeed Windows Vista that I am talking about. While I haven't had time to play with Windows 7 RC just yet, I imagine that WE in 7 will continue to be like it is in Vista in terms of its resorting behaviour.
OK, I'm currently in favor of c) persevere and try to make it work like it does on WE., but it is more complicated as I thought, so I won't do it now. It has not enough priority.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Auto-refresh only works if you press enter key

Post by zer0 »

10 months later, I'd like to come back to this issue, if you don't mind :wink:

This return is prompted by my discovery over the weekend of the fact that, if "Resort immediately upon rename" is enabled, rename scripting command will also cause a resort. No problem there, all as expected. This leaves just focus loss as the only method of committing a rename that does not trigger a resort -- this should really change to not only obey that setting, but also to get in line with results of other renaming methods.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Auto-refresh only works if you press enter key

Post by zer0 »

8 months on, I am bumping this topic again. More users are switching to Windows 7 and resort on rename commit through loss of focus is standard behaviour in this OS. Lack of such is having first-hand impact on me. Often, I create a folder in one pane and start clicking on files I want to drag to it from another. It is far easier to remember just said folder's name rather than its position in the list as well.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

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

Re: Auto-refresh only works if you press enter key

Post by admin »

It seems to be only you...

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Auto-refresh only works if you press enter key

Post by zer0 »

admin wrote:It seems to be only you...
Not forgetting the OP, of course. And your intent on persevering and making it work like WE a year and a half ago. "Resort immediately after rename" isn't even enabled by factory default, so who is complaining? :wink:
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

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

Re: Auto-refresh only works if you press enter key

Post by admin »

I tried it and I think the WE/7 way is not good.

Try to find a crowd of fools and I rethink it. :wink:

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Auto-refresh only works if you press enter key

Post by zer0 »

admin wrote:I tried it and I think the WE/7 way is not good.

Try to find a crowd of fools and I rethink it. :wink:
Don, it shouldn't take a crowd of fools for you to see the light. For the purposes of this discussion, I tried a couple of other frequently-mentioned FMs and they resorted on focus loss. Thus, whether a user comes from Explorer-land (in a post-XP era) or is an ex those-FMs user, their expectation level is for a resort to take place.

OK, the help file does mention that a resort would not take place on focus loss. But: a) most users won't read it, especially when "no reading necessary" is promoted b) it's an attempt to lower users' expectations (not a good thing!) if an in-place product swap has happened c) it's an attempt to redefine what actions constitute a "rename".

Are all of the above REALLY outweighed by "...it might lead to confusion"?
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

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

Re: Auto-refresh only works if you press enter key

Post by admin »

zer0 wrote:
admin wrote:I tried it and I think the WE/7 way is not good.

Try to find a crowd of fools and I rethink it. :wink:
Don, it shouldn't take a crowd of fools for you to see the light. For the purposes of this discussion, I tried a couple of other frequently-mentioned FMs and they resorted on focus loss. Thus, whether a user comes from Explorer-land (in a post-XP era) or is an ex those-FMs user, their expectation level is for a resort to take place.

OK, the help file does mention that a resort would not take place on focus loss. But: a) most users won't read it, especially when "no reading necessary" is promoted b) it's an attempt to lower users' expectations (not a good thing!) if an in-place product swap has happened c) it's an attempt to redefine what actions constitute a "rename".

Are all of the above REALLY outweighed by "...it might lead to confusion"?
I think so. :|

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Auto-refresh only works if you press enter key

Post by zer0 »

admin wrote:I think so. :|
Wow. The only potential reason for confusion -- in my opinion -- could be due to mismatch of expectations of XP (and older OS) Explorer users. I can quote various excerpts from the changelog where functionality was changed to match the Vista/W7 direction (and thus user expectation). Going forward the userbase will shift towards W7, so what calls for an exception on this occasion? :?
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Auto-refresh only works if you press enter key

Post by j_c_hallgren »

zer0 wrote: Going forward the userbase will shift towards W7, so what calls for an exception on this occasion? :?
But for now, XP still has is the dominant OS in Windows...just saw an article on Net yesterday (can't recall where) that it still has 60% or so of installed base where W7 is only at 17% or so...so in some of these cases, we might need a generic XP/W7 type switch so that it could better match the stds of that OS style.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

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

Re: Auto-refresh only works if you press enter key

Post by TheQwerty »

zer0 wrote:
TheQwerty wrote:4) XY lost focus - Nothing. It's not clear that the user chose to exit rename mode, so the name shouldn't be changed. I'm not sure whether a resort should occur if the user was performing a serial rename. I'm leaning towards yes as they've committed the previous names, but it means when they get to return focus to XY it won't be exactly as it was before focus was stolen. (Ideally it would be leave the user in rename mode, but blah blah unicode controls broke that :P )
From there a tweak could be introduced for number 4 for any users who wish to throw caution to the wind and use WE's dangerous behavior.
This is an interesting one. First of all, I don't see WE's behaviour is dangerous. It maybe the case that those unfamiliar with it, such as those moving from XP to Vista, may find the behaviour unnatural but I can only foresee that happening if some glitch caused their rename to be committed. If they did in fact commit a rename then I see a resort to be a natural consequence. The way I envision this, if sorted by filename, is that you "take a file out" when you wish to rename, do the renaming and put it back into the list of files. Since the list is already "under the watch" of "sort by filename" then it takes that file and puts it in the right place according to its name. If you prefer, think of it as going to a library, taking a book to read from a shelf, changing the author's name and trying to put the book back in the same place where you took it from. If that was acceptable behaviour then every library would be a mess. Same when it comes to file management, once a rename has been committed it is released back into the file system and if that system is sorted by a certain criteria then this newly-renamed file should obey this criteria immediately.

I assume that it would not be too difficult to distinguish between loosing focus due to a mouse click and a glitch (if XY keeps a record of every mouse-click that is). Therefore, one should not be worried in terms of clarity whether a user chose to exit rename mode or the computer made that choice for him ;)
I never responded to this, but I still view my four cases as ideal.

I see WE's behavior as dangerous because it can easily lead to the file being renamed when some other program steals focus, and following this with a resort means the user:
  1. Can't be sure of the new name, since they weren't done editing.
  2. Doesn't know where the item is now in the list.
Now your point is that if the user changes focus from XY to another program it should commit and resort, and if Don can reliably determine desired loss of focus via user interaction vs. it being stolen or accidental then I can support that.

Otherwise the options are:
  1. Leave the item in rename mode.
  2. Rename the item. This may lead to annoying dialogs (invalid/conflicting name) or apply an undesired name.
  3. Rename the item and then sort the list based on the new name. Same as above but also adds the possible inconvenience of making it difficult to find the item.
  4. Cancel the Rename, requires the user to start over.
I feel 1 is the only good option, but unfortunately when Don added Unicode he apparently lost the ability to do this when XY is inactive.

Of the remaining three I find 4 to be the least evil because:
  1. It's the only one that returns the user to a known state.
  2. It is less likely that canceling the rename will trigger action by other programs. If the item is in a synced folder, the rename that comes from options 2 or 3 will be propagated to the other locations/cloud, and if the result is not desired this wastes even more time, resources, and possibly causes other problem.
So I guess that makes me a fool that's partly for this? If I've successfully followed the conversation. :D

Post Reply