Introduction of basic macros (copy of issue #79) #83
-
I have a folder note for each of my projects under each project directory. It would be nice if, instead of specifying target folder for each project, there's an option for pinning folder note, or even better, a variable such as {%foldername%} for sorting spec. For example,
would put foldernotes after all notes that ends with GTD. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @maizehsu, Implementation completed and available in recent release (1.8.2) of the plugin The final syntax is The example sorting spec reflecting your idea looks like:
|
Beta Was this translation helpful? Give feedback.
-
This thread is a copy of #79 |
Beta Was this translation helpful? Give feedback.
-
The question was posted in Obsidian forum by @RevenantsEmbrace
The solution is to use the macro sorting-spec: |
target-folder: 2. Oneshots
> a-z
target-folder: 2. Oneshots/*
{:%parent-folder-name%:} The macro If you wish, you can explicitly specify the sorting order for the remaining items in subfolders with the indented spec like: sorting-spec: |
target-folder: 2. Oneshots
> a-z
target-folder: 2. Oneshots/*
> a-z
{:%parent-folder-name%:} This will sort items in subfolders with the specified reverse alphabetical order BTW one of oncoming releases of this |
Beta Was this translation helpful? Give feedback.
Hi @maizehsu,
Implementation completed and available in recent release (1.8.2) of the plugin
The final syntax is
{:%parent-folder-name%:}
, it fits seamlessly with already supported grammar and cannot be confused with a name of a real note (the:
character is forbidden in folder and file names)The example sorting spec reflecting your idea looks like: