Skip to content

Links to files are relativ to wrong directory

org-jami-bot--capture-file stores links to files with relative path. However, links often end up being e.g. ../../notes/agenda/jami instead of simply ./jami.

Maybe the path used is the default-directory of the capture buffer? file-relative-name supports an optional directory argument. This could be set to the file into which the capture will happen. The latter could be extracted via the capture template via the capture template key.