Open FynnFreyer opened 1 year ago
This is super weird btw, because the relevant code (I think) uses Obsidians generateMarkdownLink
which should take user preferences into account by default.
if (this.choice.appendLink) {
const markdownLink = this.app.fileManager.generateMarkdownLink(
file,
""
);
appendToCurrentLine(markdownLink, this.app);
But the behaviour is still wrong. Maybe something interferes, or it gets the 'relative' link from the vault root, because that's where the working directory is or whatever.
Description
Under Settings → Files & Links, you can set the link format, to e.g. only insert relative links. QuickAdd does not follow this setting and inserts a vault absolute (I think) link instead.
Reproduce
Expected behavior
QuickAdd should honor the "New link format" setting.
Screenshots
New link format is set to relative.
Append link is set.
The inserted (not relative) link.
Additional information
If I should provide more debug info, please let me know, also thanks a lot for the great plugin!