[Enhancement] When creating or renaming a folder/file, don't reset your typed edits after proclaiming the name is too long

Version information

  • Thunar 4.20.7
  • openSUSE Tumbleweed snapshot 20260303

Steps to reproduce

  1. create a new file or rename an existing file
  2. type a file name that is obviously too long e.g. the MD5 hash for an empty file repeated 8+ times, ideally with spaces in order to avoid issue #1412
  3. once the error shows up saying how the file name is too long, notice how none of the options allows you to retain your newly-typed file name
  4. BONUS: if you were creating a new file within Thunar (not renaming nor on the desktop), click either "Skip" button - observe how Thunar promptly crashes

Current behavior

After the error message, it always resets to the previous file name

Expected outcome

You should have a way to simply go back to the rename dialog box in order to make the name shorter without having to retype your edits again

Additional information

Regarding step 2, that issue is that the dialog window gets overly huge if the file name is a single "word", hence the recommendation of using spaces

Edited by NM64