Bug 474458 - Ability to apply rename parameters more than once
Summary: Ability to apply rename parameters more than once
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-dialog (show other bugs)
Version: 8.1.0
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-12 19:07 UTC by Fabio Sirna
Modified: 2023-09-13 11:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of the modal with the highlight on OK button (182.84 KB, image/png)
2023-09-12 19:07 UTC, Fabio Sirna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Sirna 2023-09-12 19:07:09 UTC
Created attachment 161587 [details]
Screenshot of the modal with the highlight on OK button

SUMMARY

I am renaming many files and often I have to reopen the Rename window because when I click OK it is automatically closed. This is not correct from a UX point of view because I would like to be able to continue renaming files by applying other parameters. I would like to close the window only when I have finished renaming my files.

STEPS TO REPRODUCE
1. select pictures
2. right click, Rename...
3. apply some changes by clicking OK

OBSERVED RESULT

The modal closes.

EXPECTED RESULT

To modal should stay open and let the user apply other changes. Only when the user finishes they can close the modal.

SOFTWARE/OS VERSIONS

macOS: 13.5.2
Comment 1 Maik Qualmann 2023-09-12 19:33:27 UTC
No, definitely not. You can see all the parameters in the live preview as they affect the renamed files.

Maik
Comment 2 Fabio Sirna 2023-09-12 19:53:09 UTC
Hi Maik, thanks for the prompt reply. I see the preview and I think it is great.
I try to explain what I mean with and example.
In the past I used exiftool to rename files and and adding the file dimension, something like this:

20230912_21400_3000x2000_NIKOND80_000.jpg
20230912_21400_2000x3000_NIKOND80_000.jpg

and sometimes even with different dimensions

20230912_21400_1024x768_NIKOND80_000.jpg
20230912_21400_768x1024_NIKOND80_000.jpg

I'm manually curating the collection and instead of running exiftool to remove it, I'm taking some time to review them and removing the dimensions, adding metadata and so forth in digikam.

In my case if I want to remove in the example above the _3000x2000_ and _2000x3000_ I have to:

1. Select images:
2. Right click, Rename... using this pattern [file]{replace:"3000x2000_","",r}
3. Click ok
4. Modal close
4. Right click, Rename... again using this patten [file]{replace:"3000x2000_","",r}, modal close
5. Click ok
6. Modal close
7. Right click, Rename... again using this patten [file]{replace:"1024x768_","",r}, modal close
...
until I finish removing all the dimensions.

Maybe there is a better way to automagically doing this with a super-regex string, but I am a mere mortal without super command-line powers, and monkey mode is safe. Slow but safe enough to allow me not to mess with my image collection.

In any case, thanks I'll continue doing this manually.
Comment 3 Maik Qualmann 2023-09-12 20:10:48 UTC
Why work with replace and not create a completely new filename, everything is available, date functions, camera model, etc?

Maik
Comment 4 Fabio Sirna 2023-09-12 20:21:14 UTC
(In reply to Maik Qualmann from comment #3)
> Why work with replace and not create a completely new filename, everything
> is available, date functions, camera model, etc?
> 
> Maik

eh eh this is a very good question :)

sometimes I have conflict with versioning (if you remember I alredy opened a previous issue, but is not yet available https://invent.kde.org/graphics/digikam/-/commit/d85517faf2f6ce00a232c4dbda6252e99594941c) and I thought it was easier to just remove the dimension in the way I described.

I fully understand that you don't want to implement the change and that's fine, but I think other users who are less skilled with regexp may have to repeat complex tasks in different steps to give them the ability to close the modal on their own, only the moment they have completed the task improves usability.

The label could also be renamed to "Rename" instead of "Ok" more consistent with the task.
Comment 5 Maik Qualmann 2023-09-13 11:07:48 UTC
The commit (https://invent.kde.org/graphics/digikam/-/commit/d85517faf2f6ce00a232c4dbda6252e99594941c) is available in all of our pre-release versions of digiKam-8.2.0 and can be found here:

https://files.kde.org/digikam/

Maik
Comment 6 Fabio Sirna 2023-09-13 11:17:53 UTC
Thanks, bookmarked the link.