-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
49 lines (40 loc) · 1.31 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
About
======
Renamer is a small nautilus script, written in python and gtk+, for batch renaming files in nautilus.
Installation
============
See the 'INSTALL' file.
How to report bugs
==================
Report here.
https://bugs.launchpad.net/nautilus-renamer
Available Patterns
==================
This pattern, /num*/, is not recursive meaning does not work for sub-folders/files ...
/num3/ for 001 , 002 , 003 ...
/num5/ for 00001, 00002, 00003 , ...
/num3+10/ for 010 , 011 , 012 ...
/num5+100/ for 00100, 00101, 00102 ...
To use original filename or the parent filename ...
/filename/ Original File Name
/name/ /filename/ without extension
/ext/ Only extension
/dir/ Parent Directory
To use Current time in filenames,
/date/ 24Sep2008
/year/ 2008
/month/ 09
/monthname/ September
/monthsimp/ Sep
/day/ 24
/dayname/ Wednesday
/daysimp/ Wed
You can also slice /filename/ and /name/, using /name:offset:length/. Length is optional, and both offset and length can be negative.
When they are negative, they are manipulated backwards (from end).
"123abc.jpg" => /filename:3/ => "abc.jpg"
"123abc.jpg" => /name:-3/ => "abc"
"123abc.jpg" => /name:0:-3/ => "abc"
"123abc.jpg" => /name:-3:3/ => "abc"
"123abc.jpg" => /name:-3:-3/ => "123"
"123abc.jpg" => /name:-3:100/ => "abc"
"123abc.jpg" => /name:-3:-100/ => "123"