@@ -4,43 +4,113 @@ layout: default
44
55# mainAnchor is used by Apple links
66mainAnchor : hiddenSettings
7- title : Hidden settings
7+ title : Hidden Settings
88subtitle : Settings not yet available from the preferences panel
99---
1010
11- Hidden settings
12- ===
13-
14- Some settings aren't available from the preferences panel and must be set from the CLI.
15-
16- Comparison completed notification
17- --
18-
19- ` showNotificationWhenWindowIsOnFront ` (` boolean ` , default ` false ` )
20-
21- If ` true ` the notification is always shown, otherwise only when the application window isn't in the foreground.
22-
23- defaults write com.visualdiffer showNotificationWhenWindowIsOnFront true
24-
25- Customize the file date/time format in Folder Differ View
26- --
27-
28- ` folderViewDateFormat ` (` string ` , default taken from system locale settings)
29-
30- It is possible to change how time is shown in the Folder Differ View.
31-
32- Change format
33- -------------
34- Open the terminal application and type:
35-
36- defaults write com.visualdiffer folderViewDateFormat HHmmss
37-
38- The example above sets the format to show only the time (without date); format patterns can be found at [ Unicode Technical Standard #35 ] ( https://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns ) .
39-
40- Restore default value
41- ===
42-
43- At any time it is possible to restore the default value by deleting the key:
44-
45- defaults delete com.visualdiffer showNotificationWhenWindowIsOnFront
46- defaults delete com.visualdiffer folderViewDateFormat
11+ Some settings are not exposed in the Preferences panel and must be configured from the terminal using the ` defaults ` command.
12+
13+ ** General pattern**
14+
15+ defaults write com.visualdiffer <key> <value>
16+
17+ ** Reset to default**
18+
19+ defaults delete com.visualdiffer <key>
20+
21+ Changes take effect the next time the application is launched.
22+
23+ # [ Settings] ( #settings )
24+
25+ Click any row in the ** Example** column to copy the full command to the clipboard.
26+
27+ <div class =" table-wrapper " >
28+ <table class="alt">
29+ <thead>
30+ <tr>
31+ <th>Key</th>
32+ <th>Default</th>
33+ <th>Description</th>
34+ <th>Example</th>
35+ </tr>
36+ </thead>
37+ <tbody>
38+ <tr>
39+ <td><code>alwaysResolveSymlinks</code></td>
40+ <td>YES</td>
41+ <td>Resolve symbolic links when determining file paths.</td>
42+ <td class="copy-cmd"
43+ data-cmd="defaults write com.visualdiffer alwaysResolveSymlinks -bool false">
44+ <code>-bool false</code>
45+ </td>
46+ </tr>
47+ <tr>
48+ <td><code>colorsConfigPath</code></td>
49+ <td>—</td>
50+ <td>Path to a JSON file containing a custom color configuration.
51+ Recommended location: <code>~/Library/Application Scripts/com.visualdiffer</code></td>
52+ <td class="copy-cmd"
53+ data-cmd="defaults write com.visualdiffer colorsConfigPath "/Users/<<username>>/Library/Application Scripts/com.visualdiffer/vd-colors.json"">
54+ <code>"/path/to/vd-colors.json"</code>
55+ </td>
56+ </tr>
57+ <tr>
58+ <td><code>defaultEncoding</code></td>
59+ <td>UTF-8</td>
60+ <td>Default character encoding for opening text files.
61+ The value is the <code>CFStringEncoding</code> integer identifier.</td>
62+ <td class="copy-cmd"
63+ data-cmd="defaults write com.visualdiffer defaultEncoding -int 30">
64+ <code>-int 30</code>
65+ </td>
66+ </tr>
67+ <tr>
68+ <td><code>filesStatusBarShowMessageTimeout</code></td>
69+ <td>3</td>
70+ <td>Seconds a status bar message stays visible in the file diff view before the counters are restored.</td>
71+ <td class="copy-cmd"
72+ data-cmd="defaults write com.visualdiffer filesStatusBarShowMessageTimeout -int 5">
73+ <code>-int 5</code>
74+ </td>
75+ </tr>
76+ <tr>
77+ <td><code>foldersDifferenceNavigatorCenterInWindow</code></td>
78+ <td>YES</td>
79+ <td>Center the selected difference in the folder comparison window when navigating.</td>
80+ <td class="copy-cmd"
81+ data-cmd="defaults write com.visualdiffer foldersDifferenceNavigatorCenterInWindow -bool false">
82+ <code>-bool false</code>
83+ </td>
84+ </tr>
85+ <tr>
86+ <td><code>folderViewDateFormat</code></td>
87+ <td><code>ddMMyyHHmmss</code></td>
88+ <td>Date and time format used in the folder diff view.
89+ Pattern syntax: <a href="https://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns">Unicode Technical Standard #35</a></td>
90+ <td class="copy-cmd"
91+ data-cmd="defaults write com.visualdiffer folderViewDateFormat HHmmss">
92+ <code>HHmmss</code>
93+ </td>
94+ </tr>
95+ <tr>
96+ <td><code>showNotificationWhenWindowIsOnFront</code></td>
97+ <td>NO</td>
98+ <td>When <code>NO</code>, completion notifications are shown only when the app is in the background.
99+ When <code>YES</code>, notifications are always shown.</td>
100+ <td class="copy-cmd"
101+ data-cmd="defaults write com.visualdiffer showNotificationWhenWindowIsOnFront -bool true">
102+ <code>-bool true</code>
103+ </td>
104+ </tr>
105+ <tr>
106+ <td><code>showRecentDocumentsList</code></td>
107+ <td>NO</td>
108+ <td>Show the Recent Documents popup menu on the main window.</td>
109+ <td class="copy-cmd"
110+ data-cmd="defaults write com.visualdiffer showRecentDocumentsList -bool true">
111+ <code>-bool true</code>
112+ </td>
113+ </tr>
114+ </tbody>
115+ </table>
116+ </div >
0 commit comments