ranger.vim
ranger.vim copied to clipboard
Opening PDFs
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).
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).
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.
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.
I would also like this extension to work with other files, e.g., opening JPGs etc like "normal" ranger would.