Bug 453275 - Renaming files is not folder aware, even with folder aware option
Summary: Renaming files is not folder aware, even with folder aware option
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-file (show other bugs)
Version: 7.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-01 22:04 UTC by Jared Van Leeuwen
Modified: 2022-05-28 19:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Van Leeuwen 2022-05-01 22:04:27 UTC
SUMMARY
I have not done file renaming in digiKam yet. All of the file renaming has happened outside of digiKam. I would like to use digiKam going forward, but I am running into errors.


STEPS TO REPRODUCE
1. Have a pre-existing name schema. For pictures of my cat in 2022 it is Bella 22 ##.
2. Import a new picture
3. Select the picture.
4. In the rename dialog enter Bella 22 ##[f] (or Bella [date:yy] ##[f])

OBSERVED RESULT
The dialog will say that the new name is Bella 22 01.

EXPECTED RESULT
The dialog to say that the new name is Bella 22 07 (the directory already contains Bella 22 01 - Bella 22 06).

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2022-05-02 05:51:52 UTC
Renaming in the import dialog is still limited at the moment. Rename the images later with the "Rename" (F3) function. You have to activate the metadata in the camera settings of digiKam under Behavior (makes the connection slower) so that e.g. creating folders by date works correctly.

Maik
Comment 2 Maik Qualmann 2022-05-02 05:53:33 UTC
Correction, rename is F2.

Maik
Comment 3 Maik Qualmann 2022-05-02 05:58:50 UTC
Maybe I'm misunderstanding you and you want to use the folder date to rename. This function is currently not available.

Maik
Comment 4 Jared Van Leeuwen 2022-05-03 00:55:31 UTC
(In reply to Maik Qualmann from comment #3)
> Maybe I'm misunderstanding you and you want to use the folder date to
> rename. This function is currently not available.
> 
> Maik

I thought the function of [f] is to make the numbering unique to the folder. If that's not the case I misunderstand the documentation of the purpose of [f]. From what I read I thought it would scan the folder, find the highest file that already matched the pattern, increment by one, and go from there.
Comment 5 Maik Qualmann 2022-05-03 05:57:40 UTC
Numbering with ###[f] respects the folder. For example, if you selected 3 files from different folders, without the 'f' option, the numbering would look like this: 001, 002, 003. With the 'f' option, since all files from different folders are like this: 001, 001, 001.

Maik
Comment 6 Maik Qualmann 2022-05-03 06:02:06 UTC
We already have a bug report for the wish to continue numbering. We continue on bug 324967.

Maik

*** This bug has been marked as a duplicate of bug 324967 ***
Comment 7 Maik Qualmann 2022-05-28 19:53:25 UTC
Git commit 7c5b8db61086310617d668b7b4998ffcd0117599 by Maik Qualmann.
Committed on 28/05/2022 at 19:51.
Pushed by mqualmann into branch 'master'.

add increment file counter to Advanced Rename
The sequence numbering has a option [c] or [c,step] now.
Related: bug 324967
FIXED-IN: 8.0.0

M  +3    -1    NEWS
M  +39   -2    core/utilities/advancedrename/advancedrenamemanager.cpp
M  +1    -0    core/utilities/advancedrename/advancedrenamemanager.h
M  +51   -17   core/utilities/advancedrename/parser/options/sequencenumberoption.cpp
M  +7    -0    core/utilities/advancedrename/parser/options/sequencenumberoptiondialogwidget.ui

https://invent.kde.org/graphics/digikam/commit/7c5b8db61086310617d668b7b4998ffcd0117599