Bug: Explorer reselects entire filename when editing the name of a newly synced file
What's the Bug:
This bug causes File Explorer to select all the text of a filename you are editing while you editing it, which causes a single keystroke to erase the text of the filename if you are not paying attention.
When It Happens:
It happens when you immediately try to rename a file after performing a file operation but before the OneDrive client syncs it. For example, it happens if you copy a file and quickly rename it, or if you save a file and then quickly rename it. It appears as though Explorer incorrectly reselects the entire filename once it syncs the file.
Example Steps to Reproduce:
1. In Explorer, copy a file to a synced OneDrive folder. Let's say the filename is "book.txt".
2. Immediately after copying the file (before it is synced to OneDrive):
2a. Start to rename the file (e.g. press F2). (At first, the entire filename text is selected, such as "book".)
2b. Position the cursor at any single point in the file name (so the entire filename text is no longer selected). For example, place the cursor at the end of the filename so you can rename it to "book123456789".
3. Wait a second or two (presumably for the file to sync to OneDrive).
4. Explorer automatically reselects the entire filename. (If you were trying, for example, to append "123456789" to the original filename, you end up erasing the original file name after Explorer selects it and you press any key.)
Damon Erickson commented
A brief check on StackExchange and I find that this bug dates back more than 10 years. It appears that it is related to any file sync service. Why I never noticed it before I can't say, but it's really annoying now.
Vincent LeBlanc commented
How can such a bug be present for more than a month baffles me.
Anthony Wagner commented
Agreed with the others. Long standing bug that's quite frustrating.
I've had this automatic reselection problem in Windows Explorer for years. As such, I don't think this is an OneDrive issue. However, I have noticed that OneDrive appears to make this problem worse by the slight freezing or glitching of the Explorer display presumably as a result of its apparent syncing issues being exposed to the UI.
Is it even OneDrive related? I think it might be a flaw in windows explorer. And it is ridiculously annoying!
It's Nux commented
Just chiming in to say how much I hate this bug that's been happening for years.
Why is it a vote whether to fix this? It's not a suggestion for a new feature. It's a bug!
DMV Jim commented
Where is the three-thumbs up button? What an annoyance. The only workaround is...to.......work.........slower. :(
wow, cant believe it's not just me here....this bug is terrible. GET. IT. FIXED.
This bug is driving me crazy, and has for years. Even files that have not been touched for a year (so clearly not in the middle of syncing changes) do this.
I was just trying to re-name some folders that I made last year, so I clicked-paused-clicked to edit them. Then I clicked and highlighted the part I wanted to change, and it switched and highlighted the whole file name... so I used an arrow key to move the cursor to the end, and then it highlighted the whole thing... so I clicked and selected a word to change and without even releasing my mouse button (ie. still actively selecting) and it switched and highlighted the whole file name.
It is infuriating, especially if I think it has finally stopped (because I have selected 3 times in a single file name and it seems like it has stopped) so I type and it re-selects the whole title RIGHT THEN. Add in that I am one of those people who has to look at my keyboard while I type and it means I don't see that the file name is screwed up until after I hit Enter.
I thought that maybe there was FINALLY some technical thing I could find online to stop from getting so angry at Windows (I have searched in years past), but apparently not!
**As others have noted, it is not just OneDrive files. A file I created on my hard drive 5 years ago and not touched since will have this same bug if I try to rename it.
John Fitzpatrick commented
The same issue exists in just Windows 10 Explorer, not even with OneDrive attached. It's a Windows Explorer Bug that has not been fixed since Windows 7 or before. WTH? Went searching to see if there has been a solution and all the forums name the same issue. Obviously MS must be aware of this FATAL FLAW.
Have the same issue. Does somebody know when MS will fix this? Anybody has the case ID @ MS?
This has been W Explorer bug for years and still no fix, fantastic !!!
Shuodao Wang commented
this is really frustrating. no body in the onedrive team cares?
Samuele Rivoira commented
Yes, this needs to be fixed on high priority... Not sure it's a OneDrive bug, maybe a Windows Explorer issue, especially because, if I keep an Explorer window open with many files inside in the process to be synchronized, the whole PC is slowed down, and I can notice explorer.exe consuming a lot of CPU in task manager.
Please fix this. Actually this is a window's problem rather than onedrive's problem
Absolutely infuriating bug which stems from Windows File Explorer. Been happening to me for about a year and kept thinking I was causing it by accident somehow. Does nobody at Microsoft actually use their own products as this must be annoying loads of people and surely cannot be that difficult to fix.
That's extremely annoying!!! Microsoft have been turning a blind eye to it for years! (Greeting from a CN user)