Feature Requests

When clicking an embedded image, open the image in an editor
SumatraPDF supports inverse search by means of .synctex files. Used in conjuction with latex the synctex mechanism is a very useful feature for efficient editing of latex files. Often I import svg images into latex documents via the lagtex's svg package. This allows me to overlay the <imagename>.svg drawings with formulas. As an example, see the attached pdf page. When I want to edit an old document, often I have the need to open the <imagename>.svg source of a drawing. When you left double click on an image in the SumatraPDF viewer, then the inverse search is invoked and the <imagename>-svg_tex.pdf_tex corresponding to <imagename>.svg file will open in the latex's text editor. Notice, that for this to work, the synchtex mechanism must be configured properly. However, SumatraPDF opening the <imagename>-svg_tex.pdf_tex file is not of much use for me. In contrast, if SumatraPDF would open the <imagename>.svg file by invoking e.g. inkscape.exe or any other svg editor, would be of great value for me. I have implemented this mechanism on a local copy of your SumatraPDF sourcecode. It works like a charm. Already since 7 years I use this mechanism almost daily. And it makes working with inkscape, latex and pdf a breeze :-). The drawback ist that the .pdf_tex file will no longer be opened, however, this one is machine generated anyway from SumatraPDF. Now, I offer to develop a seamless implementation that fits your guidlines. Are you interested in having this feature in a future release? Specifically, I propose to add a new command for the commandline -inverse-search-forward <fullpath-to-executable> -filename-suffix "-svg_tex.pdf_tex" -new-filename-suffix ".svg" OnInverseSearch each file is checked for the filename suffix. If it matches, it is replaced by the new filename suffix. Then the executable is called with the generated filename. How would think, a commandline for configuration should look like so that it satisfies your design philosophy? Other things, to be considered?
0
Load More