None
closed
nobody
None
2019-01-17
2019-01-15
Anonymous
No

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.

1 Attachments

Discussion

  • medoc
    medoc
    2019-01-16

    My 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 $2

    or a variation thereon

     
  • Anonymous
    Anonymous
    2019-01-16

    Thanks for your answer and the script. I'm using regular search terms. But Recoll doesn't hand them over to qpdfview.

     
  • medoc
    medoc
    2019-01-16

    What recoll version are you using, on what platform?
    What query mode ?

     
  • Anonymous
    Anonymous
    2019-01-16

    Recoll 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
    Anonymous
    2019-01-16

    I've just updated to Recoll 1.23.7 + Xapian 1.4.3. The problem doesn't occur anymore. Thanks for your help!

     
  • medoc
    medoc
    2019-01-17

    • status: open --> closed
    • milestone: -->
     

Cancel   Add attachment