View Single Post
Old 05-02-2015, 03:59 AM   #256
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
@BR: But that's the problem. The Search The Internet plugin is designed to build a search URL and get that handled. The Open With plugin is designed to pass a books path to an executable with some options. Neither does what Vortex wants.

My thought was to change the Open With plugin to have an option that parses templates like the Search the Internet plugin and optionally includes the file path. After a quick look at both plugins, I think the hardest part of doing this is making sure the existing function didn't break. Well, the template parsing might be a bit harder, but hopefully calibre has some helpers to ease the pain.

My other suggestion was a wrapper script. It could be put into the Search The Internet plugin in the same way you suggested for the everything search executable. The script would convert the search parameters from URL style to those needed for the search program and then call it.
davidfor is offline   Reply With Quote