Thunar 4.18.3 on Arch.
When renaming files using the "remove characters" option, most files are renamed correctly but the longest names are changed incorrectly -- too many characters get removed from the left end of the name.
Here are screenshots showing the issue, the long names are on songs 5 and 18:
Designs
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
I can't reproduce it with those files and names (Thunar 4.18.3 on Xubuntu).
@oren-b is this something you can reproduce each time with those specific files? And if you can test with the files attached above, does it do the same with those?
It looks like the rename may have been run a second time on those two files (an additional 25 characters were removed). Is it possible that you hit "Apply" and then "Done" (Done does an apply and close which would run the removal again). This is the only way I can reproduce it, but doing this does give those exact results so maybe that was what happened?
So this in not a bug in the functionality but I think there's a usability issue here because I didn't understand that Done = apply + close. I suggest that after clicking Apply the Done button would be disabled or or something similar.
Here are some options to mitigate the problem, coming to my mind:
[Cancel][Apply and Close][Apply]
[Cancel][Apply]
[Apply] (only one button, because actually the header bar already provides a way to close the window)
I think I would go for 2. ... since it is rather common to have an additional cancel button on dialogs. Though I am almost sure somebody will complain that now one more button needs to be pressed after renaming
somebody will complain that now one more button needs to be pressed after renaming
Lol probably but it is more understandable I think.
How do you feel about [Cancel][Rename] (or Rename All) to mirror the Right Click > Rename dialog? I think it's a little more consistent, and does say what will happen when you push the button. (edit: looks like that was the name at some point previously)
But then you have two buttons that say Rename and one closes the window and one doesn't (although the Bulk Renamer button tooltip does say that the window will remain open so maybe that's okay). Maybe the Rename dialog, since the Rename button also closes the dialog, could be "Rename and Close":
It's a bit uglier but it does better convey what will actually happen.
Anyway, let me know what you'd like (whether it's either of the two above or just sticking with [Cancel] and [Apply]. This is a simple thing I can make a MR for if that's okay.
The additional 'apply' button was added in !80 (merged), because of #22 (closed). So I think we should keep the feature to don't directly close the dialog after hitting 'rename'.
How do you feel about [Cancel][Rename] (or Rename All) to mirror the Right Click > Rename dialog?
Reusing [Cancel][Rename] sounds like a good idea to me ! (Or the old [Cancel][Rename Files], if you prefer). Though to respect #22 (closed), I suppose we either will need to keep the window open after rename, or to add another button.
These two would both be fine with me:
[Cancel][Rename][Rename and Close]
[Cancel][Rename Files][Rename Files and Close]
These two as well would be fine with me, if the window will be kept open after 'rename':
[Close][Rename]
[Close][Rename Files]
This is a simple thing I can make a MR for if that's okay.
Thanks, that would be great ! Just pick the one you prefer