Switch to side-by-side view

--- a/src/query/reslistpager.cpp
+++ b/src/query/reslistpager.cpp
@@ -179,6 +179,15 @@
 	titleOrFilename = utf8fn;
     }
 
+    // Url for the parent directory. We strip the file:// part for local
+    // paths
+    string parenturl = url_parentfolder(url);
+    {
+        string localpath = fileurltolocalpath(parenturl);
+        if (!localpath.empty())
+            parenturl = localpath;
+    }
+
     // Result number
     char numbuf[20];
     int docnumforlinks = m_winfirst + 1 + i;
@@ -286,6 +295,7 @@
     subs["L"] = linksbuf.str();
     subs["N"] = numbuf;
     subs["M"] = doc.mimetype;
+    subs["P"] = parenturl;
     subs["R"] = doc.meta[Rcl::Doc::keyrr];
     subs["S"] = sizebuf;
     subs["T"] = maybeEscapeHtml(titleOrFilename);