feat(docs): document the hidden tree

This commit is contained in:
Elian Doran
2025-04-07 13:29:22 +03:00
parent 5130089b34
commit 6cc10a47d1
15 changed files with 797 additions and 55 deletions

View File

@@ -1199,13 +1199,6 @@
"isInheritable": false,
"position": 20
},
{
"type": "relation",
"name": "internalLink",
"value": "ivYnonVFBxbQ",
"isInheritable": false,
"position": 30
},
{
"type": "label",
"name": "shareAlias",
@@ -1219,6 +1212,13 @@
"value": "bx bxs-tree-alt",
"isInheritable": false,
"position": 50
},
{
"type": "relation",
"name": "internalLink",
"value": "ivYnonVFBxbQ",
"isInheritable": false,
"position": 60
}
],
"format": "markdown",
@@ -7074,6 +7074,20 @@
"value": "HcABDtFCkbFN",
"isInheritable": false,
"position": 80
},
{
"type": "relation",
"name": "internalLink",
"value": "OFXdgB2nNk1F",
"isInheritable": false,
"position": 90
},
{
"type": "relation",
"name": "internalLink",
"value": "R9pX4DGra2Vt",
"isInheritable": false,
"position": 100
}
],
"format": "markdown",
@@ -7096,13 +7110,6 @@
"type": "text",
"mime": "text/markdown",
"attributes": [
{
"type": "relation",
"name": "internalLink",
"value": "KC1HB96bqqHX",
"isInheritable": false,
"position": 10
},
{
"type": "label",
"name": "shareAlias",
@@ -7130,6 +7137,13 @@
"value": "Cq5X6iKQop6R",
"isInheritable": false,
"position": 50
},
{
"type": "relation",
"name": "internalLink",
"value": "KC1HB96bqqHX",
"isInheritable": false,
"position": 60
}
],
"format": "markdown",
@@ -8763,6 +8777,238 @@
"attachments": []
}
]
},
{
"isClone": false,
"noteId": "2mUhVmZK8RF3",
"notePath": [
"pOsGYCXsbNQG",
"tC7s2alapj8V",
"2mUhVmZK8RF3"
],
"title": "Hidden Notes",
"notePosition": 230,
"prefix": null,
"isExpanded": false,
"type": "text",
"mime": "text/html",
"attributes": [
{
"type": "relation",
"name": "internalLink",
"value": "x3i7MxGccDuM",
"isInheritable": false,
"position": 10
},
{
"type": "label",
"name": "iconClass",
"value": "bx bx-hide",
"isInheritable": false,
"position": 20
},
{
"type": "relation",
"name": "internalLink",
"value": "zEY4DaJG4YT5",
"isInheritable": false,
"position": 30
},
{
"type": "relation",
"name": "internalLink",
"value": "Cq5X6iKQop6R",
"isInheritable": false,
"position": 40
},
{
"type": "relation",
"name": "internalLink",
"value": "eIg8jdvaoNNd",
"isInheritable": false,
"position": 50
},
{
"type": "relation",
"name": "internalLink",
"value": "wX4HbRucYSDD",
"isInheritable": false,
"position": 60
},
{
"type": "relation",
"name": "internalLink",
"value": "m1lbrzyKDaRB",
"isInheritable": false,
"position": 70
},
{
"type": "relation",
"name": "internalLink",
"value": "bdUJEHsAPYQR",
"isInheritable": false,
"position": 80
},
{
"type": "relation",
"name": "internalLink",
"value": "xYmIYSP6wE3F",
"isInheritable": false,
"position": 90
},
{
"type": "relation",
"name": "internalLink",
"value": "u3YFHC9tQlpm",
"isInheritable": false,
"position": 100
},
{
"type": "relation",
"name": "internalLink",
"value": "YKWqdJhzi2VY",
"isInheritable": false,
"position": 110
},
{
"type": "relation",
"name": "internalLink",
"value": "ivYnonVFBxbQ",
"isInheritable": false,
"position": 120
},
{
"type": "relation",
"name": "internalLink",
"value": "qzNzp9LYQyPT",
"isInheritable": false,
"position": 130
},
{
"type": "relation",
"name": "internalLink",
"value": "CdNpE2pqjmI6",
"isInheritable": false,
"position": 140
},
{
"type": "relation",
"name": "internalLink",
"value": "R9pX4DGra2Vt",
"isInheritable": false,
"position": 150
},
{
"type": "relation",
"name": "internalLink",
"value": "4TIF1oA4VQRO",
"isInheritable": false,
"position": 160
},
{
"type": "relation",
"name": "internalLink",
"value": "_globalNoteMap",
"isInheritable": false,
"position": 170
},
{
"type": "relation",
"name": "internalLink",
"value": "_sqlConsole",
"isInheritable": false,
"position": 180
},
{
"type": "relation",
"name": "internalLink",
"value": "_search",
"isInheritable": false,
"position": 190
},
{
"type": "relation",
"name": "internalLink",
"value": "_bulkAction",
"isInheritable": false,
"position": 200
},
{
"type": "relation",
"name": "internalLink",
"value": "_backendLog",
"isInheritable": false,
"position": 210
},
{
"type": "relation",
"name": "internalLink",
"value": "_userHidden",
"isInheritable": false,
"position": 220
},
{
"type": "relation",
"name": "internalLink",
"value": "_lbTplRoot",
"isInheritable": false,
"position": 230
},
{
"type": "relation",
"name": "internalLink",
"value": "_share",
"isInheritable": false,
"position": 240
},
{
"type": "relation",
"name": "internalLink",
"value": "_lbRoot",
"isInheritable": false,
"position": 250
},
{
"type": "relation",
"name": "internalLink",
"value": "_options",
"isInheritable": false,
"position": 260
},
{
"type": "relation",
"name": "internalLink",
"value": "_lbMobileRoot",
"isInheritable": false,
"position": 270
},
{
"type": "relation",
"name": "internalLink",
"value": "_help",
"isInheritable": false,
"position": 280
},
{
"type": "relation",
"name": "internalLink",
"value": "QEAPj01N5f7w",
"isInheritable": false,
"position": 290
}
],
"format": "markdown",
"dataFileName": "Hidden Notes.md",
"attachments": [
{
"attachmentId": "PrFEZeM6sRl6",
"title": "image.png",
"role": "image",
"mime": "image/png",
"position": 10,
"dataFileName": "Hidden Notes_image.png"
}
]
}
]
},

View File

@@ -9,19 +9,30 @@ To make an attribute inheritable, simply use the visual editor for <a class="re
As an example, the `archived` label can be set to be inheritable, allowing you to hide a whole subtree of notes from searches and other dialogs by applying this label at the top level.
Standard inheritance forces all the notes that are children (and sub-children) of a note to have that particular label or relation. If there is a need to have some notes not inherit one of the labels, then _copying inheritance_ or _template inheritance_ needs to be used instead.
## Copying Inheritance
Copying inheritance differs from standard inheritance by using a `child:` prefix in the attribute name. This prefix causes new child notes to automatically receive specific attributes from the parent note. These attributes are independent of the parent and will persist even if the note is moved elsewhere.
### How to Use
If a parent note has the label `#child:exampleAttribute`, all newly created child notes (one level deep) will inherit the `#exampleAttribute` label. This can be useful for setting default properties for notes in a specific section.
* **Syntax:** `#child:attributeName`
* **Chained Inheritance:** You can chain this inheritance, such as `#child:child:attributeName`, where each child down the hierarchy receives the appropriate attribute.
Similarly, for relations use `~child:myRelation`.
### Example
Due to the way it's designed, copying inheritance cannot be used to cascade infinitely within a hierarchy. For that use case, consider using either standard inheritance or templates.
If a parent note has the label `#child:exampleAttribute`, all newly created child notes will inherit the `#exampleAttribute` label. This can be useful for setting default properties for notes in a specific section.
### Chained inheritance
It is possible to define labels across multiple levels of depth. For example, `#child:child:child:foo` applied to a root note would create:
* `#child:child:foo` on the first-level children.
* `#child:foo` on the second-level children.
* `#foo` on the third-level children.
Similarly, use `~child:child:child:foo` if dealing with relations.
Do note that same as simple copying inheritance, the changes will not apply retroactively to existing notes in the hierarchy, it will only apply to the newly created notes.
## Template Inheritance
Attributes can also be inherited from [templates](../Templates.md). When a new note is created using a template, it inherits the attributes defined in that template. This is particularly useful for maintaining consistency across notes that follow a similar structure or function.
Attributes can also be inherited from <a class="reference-link" href="../Templates.md">Templates</a>. When a new note is created using a template, it inherits the attributes defined in that template. This is particularly useful for maintaining consistency across notes that follow a similar structure or function.

View File

@@ -1,9 +1,9 @@
# Labels
A label is an [attribute](../Attributes.md) of a note which has a name and optionally a value. 
A label is an [attribute](../Attributes.md) of a note which has a name and optionally a value.
## Common use cases
* **Metadata**: Assign labels with optional values for categorization, such as `#year=1999`, `#genre="sci-fi"`, or `#author="Neal Stephenson"`.
* **Metadata for personal use**: Assign labels with optional values for categorization, such as `#year=1999`, `#genre="sci-fi"`, or `#author="Neal Stephenson"`. This can be combined with <a class="reference-link" href="Promoted%20Attributes.md">Promoted Attributes</a> to make their display more user-friendly.
* **Configuration**: Labels can configure advanced features or settings (see reference below).
* **Scripts and Plugins**: Used to tag notes with special metadata, such as the "weight" attribute in the <a class="reference-link" href="../Advanced%20Showcases/Weight%20Tracker.md">Weight Tracker</a>.

View File

@@ -3,7 +3,9 @@ A relation is similar to a [label](Labels.md), but instead of having a text valu
## Common use cases
* **Metadata Relationships**: For example, linking a book note to an author note.
* **Metadata Relationships for personal use**: For example, linking a book note to an author note.
This can be combined with <a class="reference-link" href="Promoted%20Attributes.md">Promoted Attributes</a> to make their display more user-friendly.
* **Configuration**: For configuring some notes such as <a class="reference-link" href="../../Note%20Types/Render%20Note.md">Render Note</a>, or configuring <a class="reference-link" href="../Sharing.md">Sharing</a> or <a class="reference-link" href="../Templates.md">Templates</a> (see the list below).
* **Scripting**: Attaching scripts to events or conditions related to the note.
## Creating a relation using the visual editor

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -30,4 +30,4 @@ To do so, first select the note to start the selection with. Then hold Shift and
![](Note%20Tree_image.png)
In the right-click menu, operations such as Cut, Copy, Move to, Clone to or Delete will apply to all the selected notes. It is also possible to apply [Bulk actions](../../Advanced%20Usage/Bulk%20actions.md) to them. The rest of the options will not be available and will appear disabled in the menu.
In the right-click menu, operations such as Cut, Copy, Move to, Clone to or Delete will apply to all the selected notes. It is also possible to apply <a class="reference-link" href="../../Advanced%20Usage/Bulk%20actions.md">Bulk actions</a> to them. The rest of the options will not be available and will appear disabled in the menu.