New file created is from the root of the vault even when it is set-to create from the current file's directory

Behaviour observed

When new files created through (clicking) links (for those files don’t exist already); even though in the settings I have asked to create from the current file’s directory, Obsidian creates the linked new file from the root of the vault.

Expected behaviour

When new files are to be created in the relative folder from the current file (in settings) the new file created through clicking a link, should be created in the relative folder from the current file.

Screenshots

Settings setup on Sandbox vault for the testing:

Sandbox test result:

Notice that the “subdir” directory is expected to be created under the “Adventurer” directory. But it was created at the root of the Sabdbox vault.

Obsidian version

Version 1.12.7 (Installer 1.8.10)

This isn’t a bug. Folder paths in links always start from the vault root. The “new file” setting doesn’t change that.

The Help docs don’t discuss paths, so I’ve posted an issue on their GitHub: Internal Links & Settings > "Default location for new notes" don't mention folder paths · Issue #1082 · obsidianmd/obsidian-help · GitHub

1 Like

Thanks for the clarification. What you say make sense, however I have a suggestion .

I had a gut feeling that the folder creation may differ to files for a tick. However believe perhaps the design (thus UX) could improve there.

Any chance this could be made streamlined more so that the experience is uniform? Or create an additional option to make it possible for the user to choose if the new folder creation too should be relative to the file in focus.

Thanks again for your response and support.

I am 25% certain a feature request exists for this. I didn’t find it yet.

A somewhat related FR is here: Separate New Note Options for Links and Default Hotkey

(And if you are open to plugin solutions, I have seen discussion about maybe Templater doing it. And Notebook Navigator. And possibly others.)

1 Like

Perfect. Linking the two related threads again here.

  1. Separate New Note Options for Links and Default Hotkey - Feature requests - Obsidian Forum
  1. Separate New Note Commands - Feature requests - Obsidian Forum
1 Like