summaryrefslogtreecommitdiff
path: root/src/nautilus-batch-rename-dialog.h
Commit message (Collapse)AuthorAgeFilesLines
* batch-rename-dialog: Make ``check_conflict_for_files`` privateAdrian Zatreanu2017-01-131-4/+0
| | | | | | | This function is only used inside the class file, so it should not be public. https://bugzilla.gnome.org/show_bug.cgi?id=777236
* batch-rename-dialog: major refactoringCarlos Soriano2016-09-121-27/+166
| | | | | | | | | | | | | | | | | | | | This is a refactoring that is difficult to split in several pieces. This patch implements the following changes: - Use loops instead of serie of if/elses. - Use enums and static arrays to define a static serie of tag types and properties. - Use enums for ordering and retrieval of properties of tags instead of searching. - Merge common code. - Extract common code in functions. - Mark for translation some strings. - Plug some leaks. - Fix some free-after-free. - Fix issue with condition for unavailable metadata, that was exacerbated with this refactoring. https://bugzilla.gnome.org/show_bug.cgi?id=770586
* batch-rename-dialog: use 4 spaces for identationCarlos Soriano2016-09-121-12/+12
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=770586
* batch-rename-dialog: use array-for instead of if-elsesCarlos Soriano2016-09-121-2/+2
| | | | | | | We were doing the same for several items. Use and array and a for to iterate on them. https://bugzilla.gnome.org/show_bug.cgi?id=770586
* Implement batch renamingAlexandru Pandelea2016-08-291-0/+100
Renaming multiple files at once has been a missing feature in Nautilus for a long time. This patch implements that feature in the following way: This operation is launched in the same way as the rename one, when the selection has more than one file. When the batch renaming is launched, a dialog is shown, offering two modes. In the first mode, the user can use metadata (if available), numbering and original file name tags to create the new names. Between the tags, there also can be written normal text, which will be added in the new names. If numbering is used, the order of the files can be modified by using several criteria. In the second mode, the user can replace an existing part of the name. https://bugzilla.gnome.org/show_bug.cgi?id=768311