-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make file:xxx relative to notebook and file:/xxx relative to card #496
Comments
Implementing this feature will mostly solve the problem of notebooks nested in a hierarchy as discussed in #485. I believe this feature is low cost and pays too much: by simply differentiating between
It's true that this still requires to manually create index files to access the content buried in the hierarchy, but it still is a far cry from not being able to access this content at all!!! |
I changed my mind regarding
|
There could be multiple "external" storages. For example the main emulated one, but also removable SD card at the same time. These all currently work (after 1a63a68):
I think an option is needed to map |
Where would fit this syntax? |
This is the same as |
It is necessary to allow to custom-map ~ (home directory) for compatibility with desktop Emacs, not only / But I suggested it in the another issue |
I have recordings in an apps directory on my phone. I share those with my computer with syncthing. If I could custom map
|
So, does anyone know how to write file links for using with both Emacs and Orgzly? |
Hi, was this solved? I am trying to see the same images, in the same notes (path and images duplicated) in emacs and orgzly and I can't. It seems this could be called almost a bug. |
@Ypot it is still not workaround for notes dir: when creating note, type 2 different links, 1 for Emacs, 1 for Orgzly for example:
Orgzly shows you the first link image (located in /sdcard/sync-dir) while the Emacs uses relative path and shows you the second link image (located just here). Not pretty enough, but works with Syncthing |
@Ypot IDK, but it needs some hacks both for Orgzly and for Emacs to work properly |
I think this works, at least for files The things that doesn't work for me is links to heading inside the file, like |
From SO answer, got this link to manual on attachments. |
I would love to see this work like it does on desktop. |
One possible workaround: Use a path that works in Orgzly: |
I have my
On Emacs, I can relatively link an image file in an org file on the
However, on Orgzly it won’t find the file because it skips the
Orgzly is only able to find and display the image file if I change the link to
For context, on Orgzly I set the repository to |
@aaaawwWWWwwwwWWW this will work with the unreleased Orgzly version 1.8.5, you could see if you could try it out. Set the new setting "Root for relative links" to |
@xiaoruoruo This works partly. However i use termux and git. The notebook and images are in the termux app data folder. Orgzly has access to the notebook, but not to the images. When I link to an image in a folder that is accessible; e.g. /storage/emulated/0/Download/ , then Orgzly displays the image. |
@xiaoruoruo Tested and works, but as @ronnac wrote, I needed to set |
@nevenz Can this issue be closed now that version 1.8.5 has been released with the ability to set root of absolute and relative links? |
I felt into the same issue and the solution seems a bit "hackish" for me.
In emacs I would have the following links in ~/org/agenda/some_other_notebook.org:
etc. in ~/org/roam/subfolder/test.org
What works in emacs would break in orgzly - and the other way arround. |
I understood the issue to be regarding links from repository A should be relative to the root of repository A. The ability to set a global root for absolute and relative links doesn't solve this problem if you have relative files in two repositories. |
Please, for local repositories this is very important since it allows to keep a consistent structure both in your computer and in orgzly. I think file:/xxx should be relative to your sdcard but file:xxx should be relative to your repo. I can't figure out why this isn't like that.
The text was updated successfully, but these errors were encountered: