Re: [Vimprobable-users] [PATCH 0/3] add external file handlers
Vimprobable is a lean web browser optimised for full keyboard control
Brought to you by:
hanness
From: Steffen S. <ssc...@un...> - 2012-03-03 19:27:49
|
On Sat, 3 Mar 2012, Andraž 'ruskie' Levstik wrote: > :2012-03-03T18:35:Steffen Schuldenzucker: > >> Hey Guys, >> >> I just implemented a feature that will e.g. automatically open your pdf viewer >> when you click on a pdf file. Also refactored the external URI handlers to be >> able to reuse most of their code. >> Steffen Schuldenzucker (3): >> utilities: add spawn_command_on; add is_prefix_of; refactor >> open_handler > > Why not reuse mailcap? In fact, my config.h looks like this: static FileHandler file_handlers[] = { { "application/pdf", "xdg-open %s" }, { "application/postscript", "xdg-open %s" }, ... } I had to set up xdg-open nevertheless because so many programs use it (acroread, chromium, ...) But you're probably more of an expert than me, so could you maybe explain how to handle this properly? Oh, btw. I just switched to alpine because my thunderbird was buggy :) -- Steffen |