How to apply settings to all folders and files except root folder? #12
-
|
Asked by @Obadiancruz in Issues section, copying to Q&A here: hello I finally achieved what I wanted ! im using but I don't want my root files to be affected by the sorting. how do I have the root files ignored but not the children folders and the content in them |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Copying the original answer from Issues Hi! the short answer is: specify the sorting rule for the root folder explicitly Explanation: specifying the target folder by name has always a higher priority than any wildard-pattern-based sorting specification. In your specific example, the line I've used the BTW you can use the simpler syntax |
Beta Was this translation helpful? Give feedback.
Copying the original answer from Issues
Hi!
the short answer is: specify the sorting rule for the root folder explicitly
Explanation: specifying the target folder by name has always a higher priority than any wildard-pattern-based sorting specification.
In your specific example, the line
target-folder: //*sets the sorting rules for all folders (including root) of the vault. Then, adding a linetarget-folder: /sets the sorting rules for the root/folder specifically, overriding the pattern-based configuration.I've used the
sorting: standardin the example - in result…