Query Fragments: handle config file errors + doc
This commit is contained in:
@@ -1603,6 +1603,86 @@ MimeType=*/*
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 id="RCL.SEARCH.GUI.FRAGBUTS">
|
||||
<title>The Query Fragments window</title>
|
||||
|
||||
<para>Selecting the <menuchoice><guimenu>Tools</guimenu>
|
||||
<guimenuitem>Query Fragments</guimenuitem></menuchoice> menu
|
||||
entry will open a window with radio- and check-buttons which
|
||||
can be used to activate query language fragments for
|
||||
filtering the current query. This can be useful if you have
|
||||
frequent reusable selectors, for example, filtering on
|
||||
alternate directories, or searching just one category of
|
||||
files, not covered by the standard category
|
||||
selectors.</para>
|
||||
|
||||
<para>The contents of the window are entirely customizable, and
|
||||
defined by the contents of the <filename>fragbuts.xml</filename>
|
||||
file inside the configuration directory. The sample file
|
||||
distributed with &RCL; (which you should be able to find under
|
||||
<filename>/usr/share/recoll/examples/fragbuts.xml</filename>),
|
||||
contains an example which filters the results from the WEB
|
||||
history.</para>
|
||||
|
||||
<para>Here follows an example:
|
||||
<programlisting>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<fragbuts version="1.0">
|
||||
|
||||
<radiobuttons>
|
||||
|
||||
<fragbut>
|
||||
<label>Include Web Results</label>
|
||||
<frag></frag>
|
||||
</fragbut>
|
||||
|
||||
<fragbut>
|
||||
<label>Exclude Web Results</label>
|
||||
<frag>-rclbes:BGL</frag>
|
||||
</fragbut>
|
||||
|
||||
<fragbut>
|
||||
<label>Only Web Results</label>
|
||||
<frag>rclbes:BGL</frag>
|
||||
</fragbut>
|
||||
|
||||
</radiobuttons>
|
||||
|
||||
<buttons>
|
||||
|
||||
<fragbut>
|
||||
<label>Year 2010</label>
|
||||
<frag>date:2010-01-01/2010-12-31</frag>
|
||||
</fragbut>
|
||||
|
||||
<fragbut>
|
||||
<label>My Great Directory Only</label>
|
||||
<frag>dir:/my/great/directory</frag>
|
||||
</fragbut>
|
||||
|
||||
</buttons>
|
||||
</fragbuts>
|
||||
</programlisting>
|
||||
</para>
|
||||
|
||||
<para>Each <literal>radiobuttons</literal> or
|
||||
<literal>buttons</literal> section defines a line of
|
||||
checkbuttons or radiobuttons inside the window. Any number of
|
||||
buttons can be selected, but the radiobuttons in a line are
|
||||
exclusive.</para>
|
||||
|
||||
<para>Each <literal>fragbut</literal> section defines the label
|
||||
for a button, and the Query Language fragment which will be
|
||||
added (as an AND filter) before performing the query if the
|
||||
button is active.</para>
|
||||
|
||||
<para>This feature is new in &RCL; 1.20, and will probably be
|
||||
refined depending on user feedback.</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
||||
<sect2 id="RCL.SEARCH.GUI.COMPLEX">
|
||||
<title>Complex/advanced search</title>
|
||||
|
||||
@@ -2135,6 +2215,21 @@ MimeType=*/*
|
||||
to the first page. These work even while the focus is in the
|
||||
search entry.</para>
|
||||
</formalpara>
|
||||
|
||||
<formalpara><title>Result table: moving the focus to the table</title>
|
||||
<para>You can use <keycap>Ctrl-r</keycap> to move the focus
|
||||
from the search entry to the table, and then use the arrow keys
|
||||
to change the current row. <keycap>Ctrl-Shift-s</keycap> returns to
|
||||
the search.</para>
|
||||
</formalpara>
|
||||
|
||||
<formalpara><title>Result table: open / preview</title>
|
||||
<para>With the focus in the result table, you can use
|
||||
<keycap>Ctrl-o</keycap> to open the document from the current
|
||||
row, <keycap>Ctrl-Shift-o</keycap> to open the document and close
|
||||
<command>recoll</command>, <keycap>Ctrl-d</keycap> to preview
|
||||
the document.</para>
|
||||
</formalpara>
|
||||
|
||||
<formalpara><title>Editing a new search while the focus is not
|
||||
in the search entry</title>
|
||||
|
||||
Reference in New Issue
Block a user