I've entered this into the mimeview file:
qpdfview --search %s %f#%p
But it doesn't work, Recoll doesn't include the search term.
Discussion
-
Anonymous
2019-01-15Recoll 1.22.4 + Xapian 1.4.3 in MX Linux.
-
medoc
2019-01-16My guess would be that there were no terms in your search, e.g. ext:pdf
Using qpdfview --search "%f" does not work either (qpdfview says it does not want an empty search term). --search "%f " works, but then you are searching for instances of your term with a space after, which is not what you want.
There is no provision currently for conditional parts in the configuration viewer command line, and it would complicated to implement.
I think that the easiest approach if you can't live with this would be an intermediary shell script which would test its arguments and only use --search if there is actually one search argument
myshellscript "%s" "%f#%p"
Then in the script:
if test -n $1; then opt="--search $1"; else opt="";fi
qpdfview $opt $2or a variation thereon
-
Anonymous
2019-01-16Thanks for your answer and the script. I'm using regular search terms. But Recoll doesn't hand them over to qpdfview.
-
medoc
2019-01-16What recoll version are you using, on what platform?
What query mode ?
-
Anonymous
2019-01-16Recoll 1.22.4 + Xapian 1.4.3
MX Linux 18 - Kernel 4.19.0-1-amd64 x86_64
Debian GNU/Linux 9 (stretch)The problem occurs in all query modes.
Full content of mimeview:
# The system-wide configuration files for recoll are located in: # /usr/share/recoll/examples # The default configuration files are commented, you should take a look # at them for an explanation of what can be set (you could also take a look # at the manual instead). # Values set in this file will override the system-wide values for the file # with the same name in the central directory. The syntax for setting # values is identical. xallexcepts = application/pdf application/postscript application/x-dvi \ application/x-fsdirectory|parentopen inode/directory|parentopen \ text/html|chm text/html|epub text/html|gnuinfo [view] application/pdf = qpdfview --search %s %f#%p
Attachments
-
Anonymous
2019-01-16I've just updated to Recoll 1.23.7 + Xapian 1.4.3. The problem doesn't occur anymore. Thanks for your help!
-
medoc
2019-01-17Great ! I had forgotten about this bug in 1.22.
Also: you probably need to reset your index. Have a look at this:
https://www.lesbonscomptes.com/recoll/BUGS.html#b_1_23_5
-
medoc
2019-01-17- status: open --> closed
- milestone: -->