Images only display in preview pane if they are in the nvUltra folder
CompletedThe latest release seems to have fixed the problem with link and images (thanks!).
However, I noted that if an image file is not in the nvUltra-managed folder, it will not be displayed in the preview pane (there is a missing image icon instead), and it also seems that the relative file url inserted is not correct.
Specifics:
The image file is in ~/Desktop/image.jpg.
My nvUltra files are in ~/RSync/nvUltra.
If I drag that image file into my nvUltra note, the link is created as:
 -- which is incorrect as the relative link to the nvUltra folder where the document is located should be ../../Desktop/image.jpg.
Further, if I edit the link with an absolute path (/Users/me/Desktop/image.jpg) it is still not displayed in the preview pane.
This may be intended behavior to have nvUltra not access any files that are not in a designated folder that it has been given access to, or may be a bug...so I am reporting it.
Thanks.
-
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 -
The relative URL issue should be fixed for next release (31)
Thanks!
0 -
The relative link doesn't work for me in 1.0.0(31)
The preview *does* work in Marked II.
0 -
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 -
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 -
Given requirements of macOS and the App Store, this is not currently possible.
0 -
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 -
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 -
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.
Comments
9 comments