wm3 icon indicating copy to clipboard operation
wm3 copied to clipboard

Allow user to specify directory for html output

Open jmcd040 opened this issue 6 years ago • 2 comments

WM3 Beta8 Windows 10 For future consideration: When selecting "Open in Browser" in the preview pane, an html file is written to C:\Users\<user>\AppData\Local\Temp. It would be an improvement for the default directory for this file to be a user setting in the settings_main.json file. In addition whether or not a "default" output directory is specified it would nice to have a switch option that would force the html file to be given the document name and stored in the directory where the bound file for the document is located if the document is bound to a file (otherwise use the default setting). I mentioned in another post that it would also be nice to have a setting option to move any and all graphic items (images and videos) to an .assets file located in the directory of the html output file.

jmcd040 avatar Mar 07 '19 00:03 jmcd040

My reasoning so far: Export to browser doesn't litter the disk with export files, user can choose Save As in browser to create an HTML file. i.

writemonkey avatar Mar 08 '19 10:03 writemonkey

I experimented a bit more with this. I created an assets directory in the temp directory where you store the html output file on a windows system and used relative file links to the images in it. I then opened the WM3 output html file in Chrome and used Chrome to save it as you suggested. Chrome collected and saved all the web assets referenced in the file to a subdirectory under where I told it to store the main page link, However when it came to the images on my hard drive referenced in the markdown, it changed the html to contain full absolute file paths to each file on my local drive. After thinking this over I expect to use WM to create three types of output: print, pdf and Wordpress posts. In the case of Wordpress, I guess I'll just have to either copy and paste WM3's "clean html" output or the markup text, then move each graphic asset to Wordpress and place them in the post one by one.

Do you know of a better/faster way to deal with Wordpress?

jmcd040 avatar Mar 08 '19 23:03 jmcd040