D10698: Adds a new RenameDialog to Dolphin with more options for batch renaming

Emirald Mateli noreply at phabricator.kde.org
Tue Feb 20 20:55:33 GMT 2018


emateli created this revision.
emateli added reviewers: dfaure, elvisangelaccio, ngraham.
Restricted Application added a subscriber: Dolphin.
emateli requested review of this revision.

REVISION SUMMARY
  This is a very early version of a patch that I had in mind. The purpose of this differential is to gather feedback about said patch and decide whether it is worth moving forward with.
  The idea behind this is not to replace KRename or similar tools, but to add some slightly-more-than-basic batch rename tools while keeping the whole thing user friendly and integrated with Dolphin.
  Something that the current rename handles  and for which this new dialog might be an overkill, is the renaming of a single file, but that can easily be solved by making inline-rename the only option(Feature removal alert) for single file rename or by showing a new small dialog with just an input and a "rename" button.
  
  This patch would add the following over the existing rename dialog: Pad the sequential number, allow for more "variables" besides the auto-generated number (eg current date, time etc), find & replace (plain text or regex) and a preview table widget which can preview the changes before being applied.
  
  A new type of renaming that isn't included, but seems interesting to me is to be able to construct a new string from regular expression matches. Eg.:
  
  Files: 
  1.TrackName_Artist_album.mp3
  2.TrackName2_album.mp3
  
  Find: \d\.(.+)_(.+?)_
  New name: \2 - \1.mp3
  
  Result:
  
  Artist - TrackName.mp3
  Artist - TrackName2.mp3
  
  ----
  
  Also, please don't mind the code for now as it is for demonstration only.
  
  BUG: 381483
  BUG: 371383

REPOSITORY
  R318 Dolphin

BRANCH
  renamedialog

REVISION DETAIL
  https://phabricator.kde.org/D10698

AFFECTED FILES
  src/views/renamedialog.cpp
  src/views/renamedialog.h

To: emateli, dfaure, elvisangelaccio, ngraham
Cc: #dolphin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20180220/88dba918/attachment.htm>


More information about the kfm-devel mailing list