Skip to main content

Images only display in preview pane if they are in the nvUltra folder

Completed

Comments

9 comments

  • Fletcher Penney

    1. I'll look at the relative URL behavior.

     

    2. Yes -- sandboxing prevents access to files outside of the root document folder.  (In actuality, it's a bit more complicated than that.  We also use an embedded web server due to some errors/limitations of WKWebView)

    0
  • Fletcher Penney

    The relative URL issue should be fixed for next release (31)

     

    Thanks!

    0
  • Tom Strand

    The relative link doesn't work for me in 1.0.0(31)

    https://cl.ly/6156cf

    The preview *does* work in Marked II.

     

    0
  • Fletcher Penney

    You cropped out the important stuff...  ;)  (e.g. notes list)

     

    What is the structure of the files/folders where the note and the images are located?

    0
  • David LaSpina

    Hmm... interesting Tom. I can't get it to work in Marked 2—regardless of whether they are in the nvUltra folder or elsewhere on my HD—unless I change the relative link to an absolute one. Weird.

    Anyway, is there any way around this sandbox requirement? I have a heck of a lot of notes in nvALT that link to display photos from all over my HD. When I move these notes over to nvUltra the photo links all become broken as a result of not being in the nvUltra folder. 

    0
  • Fletcher Penney

    David LaSpina

     

    Given requirements of macOS and the App Store, this is not currently possible.

    0
  • David LaSpina

    Ah well... That's unfortunate, but it leads to the question...  Will you consider releasing a non-App Store version with some of these non-sandbox abilities? I've seen several apps do that in the past. 

    0
  • Fletcher Penney

    It's not just the App Store, it's macOS.  Specifically, limitations of WKWebView (since WebView is deprecated).

     

    That said, it's also a bit out of scope for nvUltra, which is focused on editing the files within a specified folder.

     

    If Apple makes it feasible to support this without a ridiculous number of work arounds, we don't plan on intentionally preventing this functionality.  But it does not seem to be a priority for Apple based on slow-to-no progress in last few years on the technical issues.

     

    For now, the solutions are:

     

    1. Move your images to a subfolder within the folder you open in nvUltra.

    2. Open a parent-level folder that includes both the notes you are editing and the images you are linking to.  Then all content is "inside"  the nvUltra folder you are using.

    3. Use Marked for the preview (which still uses WebView rather than WKWebView, at least for now....)

    0
  • David LaSpina

    Ah, I understand. Thanks for explaining in detail :)

    I'll just make a note to always launch Marked w/nvUltra. Well... at least until Apple removes WebView, eh?

    0

Please sign in to leave a comment.

Powered by Zendesk