Bug: LIST FROM "Subfolder" don't work on mobile but on desktop and "Vault/Subfolder" vice versa
What happened?
On Desktop (tested on Windows & Mac):
LIST FROM "Subfolder"
Works fine. On Mobile not.
On Mobile (IPad, IPhone):
LIST FROM "Vaultname/Subfolder"
Works, but this work not on Desktop :-(
DQL
No response
JS
No response
Dataview Version
0.5.43
Obsidian Version
0.15.9
Device
IPhone 13, IPad 2018, MacBook Pro, Windows 10
OS
IPadOS 15.6.1, IPhone iOS 15.6.1, macOS 12.5, Windows 10
Shouldn't work on desktop either. The expected syntax is vault/subfolder. Is this unclear in the docs?
I'm pretty sure you don't need to specify the vault name on desktop; I think it's surprising that it doesn't work on mobile. There is no difference in the plugin between mobile and desktop, so maybe the API is subtly different.
Oh my mistake, I overlooked that they specified vault. Just subfolder should indeed work.
Its imposible to make a source with FROM to a folder, that works on Desktop AND Mobile! On Desktop the folder Path must been without vault/... (like "folder") On Mobile the folder Path must contains the vault/... (like "vault/folder")
Can you give us instructions to reproduce this problem? Perhaps an example vault?
Hi,
the path for the folder could be as in PowerShell:
LIST FROM "Folder"
For a relative path (starting from the file where this is)
LIST FROM "/Folder"
For an absolute path inside the active vault, starting with "/".
LIST FROM "//Vault/Folder"
For a root path, starting with two "//".
As an example. We are in "//Vault/Folder1/Index":
LIST FROM "Sample"
Lists from "//Vault/Folder1/Sample".
LIST FROM "/Help"
Lists from "//Vault/Help".
LIST FROM "/Folder2/Readme"
Lists from "//Vault/Folder2/Readme".
LIST FROM "//Vault/Folder3/Computer"
Lists from "//Vault/Folder3/Computer".
Theoretically, this could be used to access other Vaults:
LIST FROM "//OtherVault/Index"
Would be great, but only if it can be implemented quickly. Otherwise it can go on the wish list.
If this path specification is followed on desktop and mobile version, then both versions are compatible with each other.
I hope to have helped.
Carsten
Oh so you need to use full path to subfolder excluding vault folder name. Given the following folder structure:
+--Vault root
| |
| +---Folder 1
| |
| +---Folder 2
| |
| +---Folder 3
| | |
| | +----Subfolder of Folder 3
, the following are valid queries: list from "Folder 1", list from "" or list, or list from "Folder 3/Subfolder of Folder 3". This seems to cover nearly all use cases and works on both mobile and desktop. Does this help?