After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 618182 - The "Rename files" tool should remember the last Template used
The "Rename files" tool should remember the last Template used
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
2.11.x
Other Linux
: Normal normal
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2010-05-09 16:04 UTC by Christophe Bisière
Modified: 2010-05-14 11:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to attach preferences to the "rename files" dialog (11.32 KB, patch)
2010-05-10 21:15 UTC, Christophe Bisière
none Details | Review

Description Christophe Bisière 2010-05-09 16:04:35 UTC
Hi,

[This is on current git, Ubuntu 10.04 x64 up to date as of today.]

I had to rename a lot of images, spread into several folders. The template I used to rename my images is "%D{%Y-%m-%d %Hh%Mm%Ss}%E", which is not the default template of the "Rename files" tool.

I had to paste my template into the rename dialog, for every folder.

It think it would be more convenient if the dialog could remember the last template used. I guess we all tend to use a single template for most of our files, so a template entered by a user is likely to be his preferred one. Another possibility would be to allow the preferred template to be set in the (still nonexistent) preference dialog of the "Rename files" extension.

Best regards,

Christophe
Comment 1 Matthias Hawran 2010-05-10 09:05:05 UTC
I totally agree with this report
I had notice that a long time ago but never reported
Thanks for reporting Christophe.

Plus this is a regression because in 2.10.x the template was saved.
Changing "severity" to "normal" for that.
Comment 2 Christophe Bisière 2010-05-10 09:09:07 UTC
Hi Matthias,

I am working on a patch, and will submit it shortly.

Cheers,

Christophe
Comment 3 Christophe Bisière 2010-05-10 21:15:00 UTC
Created attachment 160772 [details] [review]
patch to attach preferences to the "rename files" dialog

Here is the patch. It creates a preference for every entry in the dialog, and sync them whenever it makes sense. I tried to be as robust as possible to incorrect preferences a user could have directly set using the gconf editor.

Comments welcome.

Cheers

Christophe
Comment 4 Paolo Bacchilega 2010-05-11 07:50:45 UTC
Christophe, 

the patch looks good to me, thank you.
Comment 5 Paolo Bacchilega 2010-05-14 11:33:59 UTC
patch applied right now, thanks again.