Primary
FROM ⚬ᵈᵛ|Documentation|1st|20251021004050-00-⌔
FROM
The
FROMstatement determines what pages will initially be collected and passed onto the other commands for further filtering. You can select from any source, which currently means by folder, by tag, or by incoming/outgoing links.
- Tags: To select from a tag (and all its subtags), use
FROM #tag.- Folders: To select from a folder (and all its subfolders), use
FROM "folder".- Single Files: To select from a single file, use
FROM "path/to/file".- Links: You can either select links TO a file, or all links FROM a file.
- To obtain all pages which link TO
[[note]], useFROM [[note]].- To obtain all pages which link FROM
[[note]](i.e., all the links in that file), useFROM outgoing([[note]]).You can compose these filters in order to get more advanced sources using
andandor.
- For example,
#tag and "folder"will return all pages infolderand with#tag.[[Food]] or [[Exercise]]will give any pages which link to[[Food]]OR[[Exercise]].You can also “negate” sources to obtain anything that does NOT match a source using
-:
-#tagwill exclude files which have the given tag.#tag and -"folder"will only include files tagged#tagwhich are NOT in"folder".Printed 2026-06-28.
Link to original
Secondary
• • •