Bug 493353

Summary: Renaming files/folders does not update their paths quick enough when immediately double-pressing the Enter/Return key
Product: [Plasma] plasmashell Reporter: Fernando M. Muniz <fernandommuniz>
Component: ContainmentAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: cwo.kde, nate, noahadvs, notmart
Priority: NOR    
Version: 6.1.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Renaming then opening without taking away the selection by using the Enter key.

Description Fernando M. Muniz 2024-09-19 11:40:53 UTC
Created attachment 173860 [details]
Renaming then opening without taking away the selection by using the Enter key.

If you rename a file/folder, but then immediately open it with the Enter key, it will reveal that their path weren't refreshed to it's new name, and it will fail to open the file/folder.

I did not test if the same happens on Dolphin.
Comment 1 Noah Davis 2024-09-19 11:53:19 UTC
The video appears to show the following steps:

- Make a folder in the desktop folder view
- Start renaming with the context menu
- Finish renaming with Enter
- Press Enter again to open the file.

With those steps, I could not reproduce the bug on git master.
Comment 2 Fernando M. Muniz 2024-09-19 11:56:54 UTC
Looks like the issue doesn't happen on Dolphin.

And the issue isn't because of the "/" i accidentally included in the new file name, although that's a different Bug 493354
Comment 3 Fernando M. Muniz 2024-09-19 11:59:39 UTC
(In reply to Noah Davis from comment #1)
> The video appears to show the following steps:
> 
> - Make a folder in the desktop folder view
> - Start renaming with the context menu
> - Finish renaming with Enter
> - Press Enter again to open the file.
> 
> With those steps, I could not reproduce the bug on git master.

Seems like you have to double-tap the Enter key.
First Enter key: Confirm renaming.
Sec Enter key: Open the folder.

Maybe the pathing should be renamed first, then the actual file?
Comment 4 Fernando M. Muniz 2024-09-19 12:13:30 UTC
The same doesn't happen when double-taping when creating the folder then immediately opening it.
So there must be some bottleneck when renaming the folder then immediately opening it.
Comment 5 cwo 2024-09-19 13:40:19 UTC
I can reproduce this on Fedora in a VM. You really need to double-press Return very quickly; if you wait a bit it works and opens the proper folder in Dolphin.

I can't reproduce it on a different computer running master. Good chance this got fixed somewhere along the way, but it might also be some other interaction.
Comment 6 Nate Graham 2024-09-19 20:22:11 UTC
Fixed in 6.2/git master, yeah.

*** This bug has been marked as a duplicate of bug 492668 ***