You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subtitle: Change the default file names alignment method
9
+
---
10
+
11
+
Before being compared two files they must be aligned, the alignment rule can be configured
12
+
13
+
# Align by name case sensitivity
14
+
15
+
The default alignment method compares file name strings, if they are match case then they will be aligned.
16
+
Suppose you have the scenario shown below
17
+
18
+
<tableclass="bordered">
19
+
<tr>
20
+
<th>Left</th>
21
+
<th>Right</th>
22
+
</tr>
23
+
<tr>
24
+
<td>winter.jpg</td>
25
+
<td> </td>
26
+
</tr>
27
+
<tr>
28
+
<td> </td>
29
+
<td>WINTER.JPG</td>
30
+
</tr>
31
+
<tr>
32
+
<td>summer.jpg</td>
33
+
<td>summer.jpg</td>
34
+
</tr>
35
+
</table>
36
+
37
+
By default winter.jpg and WINTER.JPG will be not aligned because their strings don't match uppercase and lowercase characters.
38
+
39
+
This result sometimes isn't what you expect, maybe you want to ignore uppercase/lowercase differences.
40
+
This can be achieved selecting 'Ignore File Name Case' from popup menu.</p>
41
+
42
+
<tableclass="bordered">
43
+
<tr>
44
+
<th>Left</th>
45
+
<th>Right</th>
46
+
</tr>
47
+
<tr>
48
+
<td>winter.jpg</td>
49
+
<td>WINTER.JPG</td>
50
+
</tr>
51
+
<tr>
52
+
<td>summer.jpg</td>
53
+
<td>summer.jpg</td>
54
+
</tr>
55
+
</table>
56
+
57
+
# Align by HFS+ filesystem case
58
+
59
+
Normally the <acronymtitle="Hierarchical File System">HFS+</acronym> disks are formatted ignoring the file name case, so if we have winter.jpg and WINTER.JPG they cannot be created on same directory (because they have the same name).
60
+
61
+
When the HFS+ partitions are formatted with case sensitive support the file names winter.jpg and WINTER.JPG are two different file names and can be created on same directory.
62
+
63
+
It is possible to let VisualDiffer determine the file name alignment case algorithm looking at HFS partition case, so three scenarios are possible
64
+
65
+
1. left and right are both case insensitive
66
+
2. left and right are both case sensitive
67
+
3. left/right is case sensitive and right/left is case insensitive
68
+
69
+
If the last scenario is true, the alignment will try to be smart, first it searches if a match case is available (winter.jpg with winter.jpg) then it tries to align with the most similar name.
70
+
71
+
# Align by user defined rules (not available on OSX 10.6 Snow Leopard)
0 commit comments