summaryrefslogtreecommitdiff
path: root/src/nautilus-file-private.h
diff options
context:
space:
mode:
authorAlexandru Pandelea <alexandru.pandelea@gmail.com>2016-08-27 19:34:08 +0300
committerAlexandru Pandelea <alexandru.pandelea@gmail.com>2016-08-29 13:02:50 +0300
commitbe12a7510090b2ec38229b6e86bc601800d2056b (patch)
treecac557d7d2ca16476d8d803eb80e5c1beba1f54b /src/nautilus-file-private.h
parentd2961830106abe6c6576207f90e2d968b554a115 (diff)
downloadnautilus-be12a7510090b2ec38229b6e86bc601800d2056b.tar.gz
Implement batch renaming
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
Diffstat (limited to 'src/nautilus-file-private.h')
-rw-r--r--src/nautilus-file-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-file-private.h b/src/nautilus-file-private.h
index c4986511b..f0ecf7294 100644
--- a/src/nautilus-file-private.h
+++ b/src/nautilus-file-private.h
@@ -214,6 +214,9 @@ struct NautilusFileDetails
typedef struct {
NautilusFile *file;
+ GList *files;
+ gint renamed_files;
+ gint skipped_files;
GCancellable *cancellable;
NautilusFileOperationCallback callback;
gpointer callback_data;