Skip to content

Select folders & files separately #47

Answered by SebastianMC
tomoayan asked this question in Q&A
Discussion options

You must be logged in to vote

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 sorting-spec: key in YAML frontmatter of relevant note. The simplest case would be the sortspec 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:

---
sorting-spec: |
 target-folder: /
 /folders
  < a-z
 /:files
  > a-z
---

in result it would apply the sorting order to the root folde…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SebastianMC
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #46 on January 19, 2023 14:37.