ranger.vim icon indicating copy to clipboard operation
ranger.vim copied to clipboard

Opening PDFs

Open avonmoll opened this issue 7 years ago • 4 comments
trafficstars

When trying to open PDF I get a new buffer with what seems to be a textual representation of all the data/metadata in the PDF. My desired behavior is that it would open the PDF using the appropriate program as ranger does normally (when called from command line).

avonmoll avatar Aug 24 '18 18:08 avonmoll

it's a current limitation, I have checked quickly and I didn't found any workaround but I guess we could find a way. Maybe adding a command for this purpose in the ranger config is a solution (something like open_with_default).

francoiscabrol avatar Nov 07 '18 21:11 francoiscabrol

in this case I would add the solution in the readme. I guess you are not the first one looking for opening some pdf/images with the default software.

francoiscabrol avatar Nov 07 '18 21:11 francoiscabrol

There is plugin to open pdf (open-pdf.vim) that depends on 'pdftotext', and some way to have an ugly image representation (i use that in one of my plugin) of an image using python PIL.

luffah avatar Jan 31 '19 10:01 luffah

I would also like this extension to work with other files, e.g., opening JPGs etc like "normal" ranger would.

sh-cau avatar Jun 20 '23 09:06 sh-cau