Modified the query language help tooltip to table form, hopefully improved

This commit is contained in:
Jean-Francois Dockes
2019-10-03 11:05:29 +02:00
parent 05354373e1
commit 8a9fe576a2
4 changed files with 79 additions and 14 deletions
+2
View File
@@ -0,0 +1,2 @@
Simple search query language tooltip. Try it out in the html file, then
use helphtmltoc.sh to turn it into code.
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
fn=qhelp.html
while read line; do
line=`echo $line| sed -e 's/"/\\\\"/g'`
echo 'tr('"\"$line\""')' +
done < $fn
+33
View File
@@ -0,0 +1,33 @@
<html><head><style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th,td {
text-align: center;
}
</style></head><body>
<p>Query language cheat-sheet. In doubt: click <b>Show Query</b>.&nbsp;
You should really look at the manual (F1)</p>
<table border='1' cellspacing='0'>
<tr><th>What</th><th>Examples</th>
<tr><td>And</td><td>one two&nbsp;&nbsp;&nbsp;one AND two&nbsp;&nbsp;&nbsp;one && two</td></tr>
<tr><td>Or</td><td>one OR two&nbsp;&nbsp;&nbsp;one || two</td></tr>
<tr><td>Complex boolean. OR has priority, use parentheses&nbsp;
where needed</td><td>(one AND two) OR three</td></tr>
<tr><td>Not</td><td>-term</td></tr>
<tr><td>Phrase</td><td>"pride and prejudice"</td></tr>
<tr><td>Ordered proximity (slack=1)</td><td>"pride prejudice"o1</td></tr>
<tr><td>Unordered proximity (slack=1)</td><td>"prejudice pride"po1</td></tr>
<tr><td>Unordered prox. (default slack=10)</td><td>"prejudice&nbsp;pride"p</td></tr>
<tr><td>No stem expansion: capitalize</td><td>Floor</td></tr>
<tr><td>Field-specific</td><td>author:austen&nbsp;&nbsp;title:prejudice</td></tr>
<tr><td>AND inside field (no order)</td><td>author:jane,austen</td></tr>
<tr><td>OR inside field</td><td>author:austen/bronte</td></tr>
<tr><td>Field names</td><td>title/subject/caption&nbsp;&nbsp;author/from<br>recipient/to&nbsp;&nbsp;filename&nbsp;&nbsp;ext</td></tr>
<tr><td>Directory path filter</td><td>dir:/home/me&nbsp;&nbsp;dir:doc</td></tr>
<tr><td>MIME type filter</td><td>mime:text/plain mime:video/*</td></tr>
<tr><td>Date intervals</td><td>date:2018-01-01/2018-31-12<br>
date:2018&nbsp;&nbsp;date:2018-01-01/P12M</td></tr>
<tr><td>Size</td><td>size&gt;100k size&lt;1M</td></tr>
</table></body></html>