diff --git a/src/Makefile.am b/src/Makefile.am index 51cd3efa..5f7577f1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -567,7 +567,7 @@ python/samples/recollgui/rclmain.ui \ python/samples/recollq.py \ python/samples/recollqsd.py \ \ -sampleconf/fields sampleconf/fragbuts.xml sampleconf/mimeconf \ +sampleconf/fields sampleconf/fragment-buttons.xml sampleconf/mimeconf \ sampleconf/mimemap sampleconf/mimeview sampleconf/mimeview.mac \ sampleconf/recoll.conf sampleconf/recoll.qss \ sampleconf/recoll-dark.qss sampleconf/recoll-dark.css \ @@ -656,7 +656,7 @@ desktop/recollindex.desktop \ index/rclmon.sh \ index/recollindex@.service \ index/recollindex.service \ -sampleconf/fragbuts.xml \ +sampleconf/fragment-buttons.xml \ sampleconf/fields \ sampleconf/recoll.conf \ sampleconf/mimeconf \ diff --git a/src/doc/user/usermanual.html b/src/doc/user/usermanual.html index 7e34fd73..5c31a0aa 100644 --- a/src/doc/user/usermanual.html +++ b/src/doc/user/usermanual.html @@ -428,7 +428,7 @@ alink="#0000FF">
List of Tables
Selecting the → 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.
+ which can be used to filter the current query with + user-defined query language fragments. This can be useful + if you have frequent reusable selectors, not covered by + the standard category selectors, for example, filtering + on alternate directories, or searching just one category + of files. In practise, the query fragments are joined to + the current query as an AND clause.The contents of the window are entirely customizable,
- and defined by the contents of the fragbuts.xml file inside the
+ and defined by the contents of a XML text file, named
+ fragment-buttons.xml and
+ which will be looked for in the current index
configuration directory. The sample file distributed with
- Recoll (which you should
- be able to find under /usr/share/recoll/examples/fragbuts.xml),
- contains an example which filters the results from the
- Web history.
~/.recoll/fragment-buttons.xml under
+ Linux and Mac OS, $HOME/AppData/Local/Recoll for
+ Windows). Editing the copy will allow you to configure
+ the tool for your needs .
+ The fragment-buttons.xml file was named
+ fragbuts.xml up to
+ Recoll version 1.31.0.
+ This was deemed too close to offensive for native
+ English speakers, so that the file was renamed. An
+ existing fragbuts.xml
+ will still be used if fragment-buttons.xml does not exist.
+ No automatic renaming will be performed.
Here follows an example:
<?xml version="1.0" encoding="UTF-8"?>
-<fragbuts version="1.0">
+<fragbuttons version="1.0">
<radiobuttons>
<!-- Actually useful: toggle Web queue results inclusion -->
- <fragbut>
+ <fragbutton>
<label>Include Web Results</label>
<frag></frag>
- </fragbut>
+ </fragbutton>
- <fragbut>
+ <fragbutton>
<label>Exclude Web Results</label>
<frag>-rclbes:BGL</frag>
- </fragbut>
+ </fragbutton>
- <fragbut>
+ <fragbutton>
<label>Only Web Results</label>
<frag>rclbes:BGL</frag>
- </fragbut>
+ </fragbutton>
</radiobuttons>
<buttons>
- <fragbut>
+ <fragbutton>
<label>Example: Year 2010</label>
<frag>date:2010-01-01/2010-12-31</frag>
- </fragbut>
+ </fragbutton>
- <fragbut>
+ <fragbutton>
<label>Example: c++ files</label>
<frag>ext:cpp OR ext:cxx</frag>
- </fragbut>
+ </fragbutton>
- <fragbut>
+ <fragbutton>
<label>Example: My Great Directory</label>
<frag>dir:/my/great/directory</frag>
- </fragbut>
+ </fragbutton>
</buttons>
-</fragbuts>
+</fragbuttons>
Each radiobuttons or
buttons 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.
Each fragbut section
+ Any number of buttons can be
+ selected, but the radiobuttons in a line are
+ exclusive.
Each fragbutton 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.
The only thing that you need to know about XML for
+ editing this file is that any opening tag like <label> needs to be
+ matched by a closing tag after the value: </label>.
You will normally edit the file with a regular text + editor, like, e.g. vi or notepad. + Double-clicking the file in a file manager may not work, + because this usually opens it in a WEB browser, which + will not let you modify the contents.
Table 3.1. Keyboard shortcuts