Select folders & files separately #47
-
EDIT: Want to select and sort folder and files differently. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @tomoayan the relevant fragment of sorting specification would be: /folders
< a-z
/:files
> a-z It groups all folders and sorts them alphabetically and then, below folders, groups all files and sorts them in reversed alphabetical order. In order to work, the above snippet has to be put in the The full example to put in ---
sorting-spec: |
target-folder: /
/folders
< a-z
/:files
> a-z
--- in result it would apply the sorting order to the root folder of the vault (and only, no subfolders affected).
Please let me know if you want to exercise variants of the above sorting specification, e.g.: to sort some other folder(s), not the root folder only. |
Beta Was this translation helpful? Give feedback.
-
Thanks 👍 |
Beta Was this translation helpful? Give feedback.
Hi @tomoayan
the relevant fragment of sorting specification would be:
It groups all folders and sorts them alphabetically and then, below folders, groups all files and sorts them in reversed alphabetical order.
In order to work, the above snippet has to be put in the
sorting-spec:
key in YAML frontmatter of relevant note. The simplest case would be thesortspec
note anywhere in the vault with additional explicit specification of target folder to sort, for clarity.The full example to put in
sortspec
note would be then:in result it would apply the sorting order to the root folde…