I would like to open PDFs (say, with evince
) by clicking in the terminal.
The setup is urxvt
in Fedora 19 here, but if urxvt
cannot do this, can you let me know which terminal emulators can. I got URL detection working by putting:
urxvt*perl-lib: /usr/libi64/urxvt/perl/
urxvt*perl-ext-common: default,matcher
urxvt*matcher.button: 1
urxvt*url-launcher: /usr/bin/xdg-open
Into my ~/.Xdefaults
and running xrdb -load ~/.Xdefaults
, so hopefully there is some similar solution for the problem at hand.
Best Answer
I think I found the answer. One has to look at
and there they give examples. My usecase is to do
and get a bunch of lines like
so that adding the two lines
seems to do the job. I am quite clueless about perl regular expressions, so this is not ideal. E.g.,
will be caught (it shouldn't - it is not a PDF file!), whereas
will not be caught due to the whitespaces. Perhaps somebody can write something more elegant.
Thanks to everyone who took interest in this, cheers!