Creating nested link via typing [[folder/note]] does not create the note in custom folder defined in settings

Steps to reproduce

  • Create a new folder under root: “notes”
  • Change the setting “Folder to create new notes in” to “notes”
  • Open daily note
  • Type [[testnote]], cmd+click to create the file from the link
  • testnote file is created under “notes” successfully
  • Type [[reading/mybook]], cmd+click to create the file
  • “reading” folder is created under root folder, other than “notes”

Did you follow the troubleshooting guide? [Y/N] Y

Expected result

“reading” folder should be created under “notes” other than root folder

Actual result

“reading” folder was created under root folder

Environment

SYSTEM INFO:
Obsidian version: v1.5.8
Installer version: v1.5.3
Operating system: Darwin Kernel Version 23.3.0: Wed Dec 20 21:28:58 PST 2023; root:xnu-10002.81.5~7/RELEASE_X86_64 23.3.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

This is not a bug. This is how it’s indented to work. When you put a path, it’s interpreted relative to the root of the vault.

If that’s the case, does it mean testfile is not treated as file path but folder/testfile is? I’m not sure I understand why they should be handled differently.

At the same time, what’s the recommended approach to quickly create a nested file while typing, without typing the whole file path?

For me, the quickest way to move a note to a folder is with a hotkey for “Move current file to another folder”. With the lightning fast and efficient search, typing two or three letters already selects the target folder.

Usually, I just leave new notes in the root folder. Then, it takes some cleanup now and then to move these to the appropriate folders.

That’s right (assuming the default new link setting of “shortest path”). It allows you to specify exceptions to your normal rules.

I don’t think there is one in the core app. I do what vanadium suggests. I believe the plugins QuickAdd and Templater each have (rather different) ways of doing it. There’s also Auto Note Mover which can move notes based on name or tag. There may be other options.

There is also a feature request or two asking to make this easier (for example by providing a way to auto-complete segments of folder paths), which you could upvote.