--- a/src/qtgui/uiprefs.ui
+++ b/src/qtgui/uiprefs.ui
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>530</width>
-    <height>559</height>
+    <height>446</height>
    </rect>
   </property>
   <property name="windowTitle">
@@ -22,7 +22,7 @@
      <item>
       <widget class="QTabWidget" name="tabWidget">
        <property name="currentIndex">
-        <number>0</number>
+        <number>3</number>
        </property>
        <widget class="QWidget" name="tab">
         <attribute name="title">
@@ -34,6 +34,204 @@
            <item>
             <layout class="QHBoxLayout">
              <item>
+              <widget class="QLabel" name="textLabelqtc">
+               <property name="text">
+                <string>Highlight color for query terms</string>
+               </property>
+               <property name="wordWrap">
+                <bool>false</bool>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <widget class="QLineEdit" name="qtermColorLE">
+               <property name="minimumSize">
+                <size>
+                 <width>50</width>
+                 <height>0</height>
+                </size>
+               </property>
+              </widget>
+             </item>
+            </layout>
+           </item>
+           <item>
+            <layout class="QHBoxLayout">
+             <item>
+              <widget class="QLabel" name="tLSTL">
+               <property name="text">
+                <string>Style sheet</string>
+               </property>
+               <property name="wordWrap">
+                <bool>false</bool>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <widget class="QPushButton" name="stylesheetPB">
+               <property name="toolTip">
+                <string>Opens a dialog to select the style sheet file</string>
+               </property>
+               <property name="text">
+                <string>Choose</string>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <widget class="QPushButton" name="resetSSPB">
+               <property name="toolTip">
+                <string>Resets the style sheet to default</string>
+               </property>
+               <property name="text">
+                <string>Reset</string>
+               </property>
+              </widget>
+             </item>
+            </layout>
+           </item>
+           <item>
+            <layout class="QHBoxLayout">
+             <item>
+              <widget class="QLabel" name="textLabelHL">
+               <property name="sizePolicy">
+                <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+                 <horstretch>1</horstretch>
+                 <verstretch>0</verstretch>
+                </sizepolicy>
+               </property>
+               <property name="toolTip">
+                <string>Texts over this size will not be highlighted in preview (too slow).</string>
+               </property>
+               <property name="text">
+                <string>Maximum text size highlighted for preview (megabytes)</string>
+               </property>
+               <property name="wordWrap">
+                <bool>false</bool>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <widget class="QSpinBox" name="maxHLTSB">
+               <property name="minimum">
+                <number>1</number>
+               </property>
+               <property name="value">
+                <number>3</number>
+               </property>
+              </widget>
+             </item>
+            </layout>
+           </item>
+           <item>
+            <widget class="QCheckBox" name="previewHtmlCB">
+             <property name="text">
+              <string>Prefer Html to plain text for preview.</string>
+             </property>
+             <property name="checked">
+              <bool>false</bool>
+             </property>
+            </widget>
+           </item>
+           <item>
+            <widget class="QCheckBox" name="previewPlainPreCB">
+             <property name="toolTip">
+              <string>Lines in PRE text are not folded. Using BR loses some indentation.</string>
+             </property>
+             <property name="text">
+              <string>Use &lt;PRE&gt; tags instead of &lt;BR&gt;to display plain text as html in preview.</string>
+             </property>
+             <property name="checked">
+              <bool>false</bool>
+             </property>
+            </widget>
+           </item>
+           <item>
+            <widget class="QCheckBox" name="useDesktopOpenCB">
+             <property name="text">
+              <string>Use desktop preferences to choose document editor.</string>
+             </property>
+             <property name="checked">
+              <bool>false</bool>
+             </property>
+            </widget>
+           </item>
+           <item>
+            <widget class="QPushButton" name="viewActionPB">
+             <property name="text">
+              <string>Choose editor applications</string>
+             </property>
+            </widget>
+           </item>
+           <item>
+            <widget class="QCheckBox" name="catgToolBarCB">
+             <property name="text">
+              <string>Display category filter as toolbar instead of button panel (needs restart).</string>
+             </property>
+             <property name="checked">
+              <bool>false</bool>
+             </property>
+            </widget>
+           </item>
+           <item>
+            <widget class="QCheckBox" name="autoSearchCB">
+             <property name="text">
+              <string>Auto-start simple search on whitespace entry.</string>
+             </property>
+             <property name="checked">
+              <bool>false</bool>
+             </property>
+            </widget>
+           </item>
+           <item>
+            <widget class="QCheckBox" name="initStartAdvCB">
+             <property name="text">
+              <string>Start with advanced search dialog open.</string>
+             </property>
+             <property name="checked">
+              <bool>false</bool>
+             </property>
+            </widget>
+           </item>
+           <item>
+            <widget class="QCheckBox" name="keepSortCB">
+             <property name="text">
+              <string>Remember sort activation state.</string>
+             </property>
+             <property name="checked">
+              <bool>false</bool>
+             </property>
+            </widget>
+           </item>
+           <item>
+            <spacer name="spacer4">
+             <property name="orientation">
+              <enum>Qt::Vertical</enum>
+             </property>
+             <property name="sizeType">
+              <enum>QSizePolicy::Expanding</enum>
+             </property>
+             <property name="sizeHint" stdset="0">
+              <size>
+               <width>20</width>
+               <height>70</height>
+              </size>
+             </property>
+            </spacer>
+           </item>
+          </layout>
+         </item>
+        </layout>
+       </widget>
+       <widget class="QWidget" name="tab_2">
+        <attribute name="title">
+         <string>Result List</string>
+        </attribute>
+        <layout class="QVBoxLayout">
+         <item>
+          <layout class="QVBoxLayout">
+           <item>
+            <layout class="QHBoxLayout">
+             <item>
               <widget class="QLabel" name="textLabel1">
                <property name="sizePolicy">
                 <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
@@ -64,30 +262,6 @@
            <item>
             <layout class="QHBoxLayout">
              <item>
-              <widget class="QLabel" name="textLabelqtc">
-               <property name="text">
-                <string>Highlight color for query terms</string>
-               </property>
-               <property name="wordWrap">
-                <bool>false</bool>
-               </property>
-              </widget>
-             </item>
-             <item>
-              <widget class="QLineEdit" name="qtermColorLE">
-               <property name="minimumSize">
-                <size>
-                 <width>50</width>
-                 <height>0</height>
-                </size>
-               </property>
-              </widget>
-             </item>
-            </layout>
-           </item>
-           <item>
-            <layout class="QHBoxLayout">
-             <item>
               <widget class="QLabel" name="textLabel4">
                <property name="text">
                 <string>Result list font</string>
@@ -130,7 +304,7 @@
                 </sizepolicy>
                </property>
                <property name="toolTip">
-                <string>Defines the format for each result list paragraph. Use qt html format and printf-like replacements:&lt;br&gt;%A Abstract&lt;br&gt; %D Date&lt;br&gt; %I Icon image name&lt;br&gt; %K Keywords (if any)&lt;br&gt; %L Preview and Edit links&lt;br&gt; %M Mime type&lt;br&gt; %N Result number&lt;br&gt; %R Relevance percentage&lt;br&gt; %S Size information&lt;br&gt; %T Title&lt;br&gt; %U Url&lt;br&gt;</string>
+                <string>Defines the format for each result list paragraph. Use qt html format and printf-like replacements:&lt;br&gt;%A Abstract&lt;br&gt; %D Date&lt;br&gt; %I Icon image name&lt;br&gt; %K Keywords (if any)&lt;br&gt; %L Preview and Edit links&lt;br&gt; %M Mime type&lt;br&gt; %N Result number&lt;br&gt; %R Relevance percentage&lt;br&gt; %S Size information&lt;br&gt; %T Title&lt;br&gt; %U Url&lt;br&gt; Go to http://www.recoll.org/custom.html for examples.</string>
                </property>
                <property name="text">
                 <string>Result paragraph&lt;br&gt;format string</string>
@@ -167,6 +341,30 @@
            <item>
             <layout class="QHBoxLayout">
              <item>
+              <widget class="QLabel" name="textLabelDateFormat">
+               <property name="text">
+                <string>Date format (strftime(3))</string>
+               </property>
+               <property name="wordWrap">
+                <bool>false</bool>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <widget class="QLineEdit" name="dateformatLE">
+               <property name="minimumSize">
+                <size>
+                 <width>30</width>
+                 <height>0</height>
+                </size>
+               </property>
+              </widget>
+             </item>
+            </layout>
+           </item>
+           <item>
+            <layout class="QHBoxLayout">
+             <item>
               <widget class="QLabel" name="textLabelAbss">
                <property name="text">
                 <string>Abstract snippet separator</string>
@@ -187,153 +385,6 @@
               </widget>
              </item>
             </layout>
-           </item>
-           <item>
-            <layout class="QHBoxLayout">
-             <item>
-              <widget class="QLabel" name="tLSTL">
-               <property name="text">
-                <string>Style sheet</string>
-               </property>
-               <property name="wordWrap">
-                <bool>false</bool>
-               </property>
-              </widget>
-             </item>
-             <item>
-              <widget class="QPushButton" name="stylesheetPB">
-               <property name="toolTip">
-                <string>Opens a dialog to select the style sheet file</string>
-               </property>
-               <property name="text">
-                <string>Choose</string>
-               </property>
-              </widget>
-             </item>
-             <item>
-              <widget class="QPushButton" name="resetSSPB">
-               <property name="toolTip">
-                <string>Resets the style sheet to default</string>
-               </property>
-               <property name="text">
-                <string>Reset</string>
-               </property>
-              </widget>
-             </item>
-            </layout>
-           </item>
-           <item>
-            <layout class="QHBoxLayout">
-             <item>
-              <widget class="QLabel" name="textLabelHL">
-               <property name="sizePolicy">
-                <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
-                 <horstretch>1</horstretch>
-                 <verstretch>0</verstretch>
-                </sizepolicy>
-               </property>
-               <property name="toolTip">
-                <string>Texts over this size will not be highlighted in preview (too slow).</string>
-               </property>
-               <property name="text">
-                <string>Maximum text size highlighted for preview (megabytes)</string>
-               </property>
-               <property name="wordWrap">
-                <bool>false</bool>
-               </property>
-              </widget>
-             </item>
-             <item>
-              <widget class="QSpinBox" name="maxHLTSB">
-               <property name="minimum">
-                <number>1</number>
-               </property>
-               <property name="value">
-                <number>3</number>
-               </property>
-              </widget>
-             </item>
-            </layout>
-           </item>
-           <item>
-            <widget class="QCheckBox" name="useDesktopOpenCB">
-             <property name="text">
-              <string>Use desktop preferences to choose document editor.</string>
-             </property>
-             <property name="checked">
-              <bool>false</bool>
-             </property>
-            </widget>
-           </item>
-           <item>
-            <widget class="QPushButton" name="viewActionPB">
-             <property name="text">
-              <string>Choose editor applications</string>
-             </property>
-            </widget>
-           </item>
-           <item>
-            <widget class="QCheckBox" name="catgToolBarCB">
-             <property name="text">
-              <string>Display category filter as toolbar instead of button panel (needs restart).</string>
-             </property>
-             <property name="checked">
-              <bool>false</bool>
-             </property>
-            </widget>
-           </item>
-           <item>
-            <widget class="QCheckBox" name="autoSearchCB">
-             <property name="text">
-              <string>Auto-start simple search on whitespace entry.</string>
-             </property>
-             <property name="checked">
-              <bool>false</bool>
-             </property>
-            </widget>
-           </item>
-           <item>
-            <widget class="QCheckBox" name="initStartAdvCB">
-             <property name="text">
-              <string>Start with advanced search dialog open.</string>
-             </property>
-             <property name="checked">
-              <bool>false</bool>
-             </property>
-            </widget>
-           </item>
-           <item>
-            <widget class="QCheckBox" name="keepSortCB">
-             <property name="text">
-              <string>Remember sort activation state.</string>
-             </property>
-             <property name="checked">
-              <bool>false</bool>
-             </property>
-            </widget>
-           </item>
-           <item>
-            <widget class="QCheckBox" name="previewHtmlCB">
-             <property name="text">
-              <string>Prefer Html to plain text for preview.</string>
-             </property>
-             <property name="checked">
-              <bool>false</bool>
-             </property>
-            </widget>
-           </item>
-           <item>
-            <widget class="QCheckBox" name="previewPlainPreCB">
-             <property name="toolTip">
-              <string>Lines in PRE text are not folded. Using BR loses indentation.</string>
-             </property>
-             <property name="text">
-              <string>Use &lt;PRE&gt; tags instead of &lt;BR&gt;to display plain text as html.</string>
-             </property>
-             <property name="checked">
-              <bool>false</bool>
-             </property>
-            </widget>
            </item>
           </layout>
          </item>
@@ -344,19 +395,19 @@
          <string>Search parameters</string>
         </attribute>
         <layout class="QVBoxLayout">
-           <item>
-            <widget class="QCheckBox" name="collapseDupsCB">
-             <property name="toolTip">
-              <string>If checked, results with the same content under different names will only be shown once.</string>
-             </property>
-             <property name="text">
-              <string>Hide duplicate results.</string>
-             </property>
-             <property name="checked">
-              <bool>false</bool>
-             </property>
-            </widget>
-           </item>
+         <item>
+          <widget class="QCheckBox" name="collapseDupsCB">
+           <property name="toolTip">
+            <string>If checked, results with the same content under different names will only be shown once.</string>
+           </property>
+           <property name="text">
+            <string>Hide duplicate results.</string>
+           </property>
+           <property name="checked">
+            <bool>false</bool>
+           </property>
+          </widget>
+         </item>
          <item>
           <layout class="QVBoxLayout">
            <item>