mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Updated Tree concepts (markdown)
parent
a6b33b7586
commit
b24ea81ebb
@ -1,40 +0,0 @@
|
|||||||
This page describes some basic concepts related to the tree structure of notes in Trilium.
|
|
||||||
|
|
||||||
## Note
|
|
||||||
|
|
||||||
Note is a central entity in Trilium. Main attributes of note are title and content.
|
|
||||||
|
|
||||||
Importantly, note itself doesn't carry information on its placement in note tree.
|
|
||||||
|
|
||||||
Tree structure of notes can resemble file system - but compared to that notes in Trilium can act as both file and directory - meaning that note can both have its own content and have children. "Leaf note" is a note which doesn't have any children.
|
|
||||||
|
|
||||||
### Note types
|
|
||||||
|
|
||||||
* text note - this is default note type which allows you to put rich text, images etc.
|
|
||||||
* [[code note|Code notes]] - some kind of formal code, typically programming language (e.g. JavaScript) or data structure (e.g. XML)
|
|
||||||
* [image note](https://github.com/zadam/trilium/wiki/Images) - represents single image
|
|
||||||
* file note - represents uploaded file (e.g. docx MS Word document).
|
|
||||||
* render HTML note - this works as an output screen of attached [[scripts]]
|
|
||||||
* saved search note - contains saved search query and dynamically displays result of the search as its sub-notes
|
|
||||||
* [[relation map]] note - visualizes notes and their relations
|
|
||||||
|
|
||||||
Remember there's no "folder" note type. Any note can be folder or "leaf" note.
|
|
||||||
|
|
||||||
### Root note
|
|
||||||
There's one special note called "root note" which is root of the note tree. All other notes are placed below it in the structure.
|
|
||||||
|
|
||||||
## Branch
|
|
||||||
|
|
||||||
Branch describes note placement in the note tree - in essence it's a tuple of parentNoteId and noteId which says that given note is placed as a child into this parent note.
|
|
||||||
|
|
||||||
Each note can have more than one such branches, in other words any note can have multiple placements in the tree. For lack of better word we call this "[[cloning|Cloning notes]]".
|
|
||||||
|
|
||||||
## Prefix
|
|
||||||
|
|
||||||
Prefix is branch (placement) specific title prefix for the note. Let's say you have your note placed into two different places in the tree, but you want to change the title a bit in one of the placements. For this you can use prefix.
|
|
||||||
|
|
||||||
To edit prefix, right click on a note in the tree pane and choose "Edit branch prefix".
|
|
||||||
|
|
||||||
## Subtree
|
|
||||||
|
|
||||||
Subtree is a set of notes consisting of a particular note (subtree root) and all its children, children of these children (= all its descendants). Some operations work on subtrees (e.g. export).
|
|
21
Tree-concepts.md
Normal file
21
Tree-concepts.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
This page describes some basic concepts related to the tree structure of notes in Trilium.
|
||||||
|
|
||||||
|
## Note
|
||||||
|
|
||||||
|
Note is a central entity in Trilium. See [[Note]] for details.
|
||||||
|
|
||||||
|
## Branch
|
||||||
|
|
||||||
|
Branch describes note placement in the note tree - in essence it's a tuple of parentNoteId and noteId which says that given note is placed as a child into this parent note.
|
||||||
|
|
||||||
|
Each note can have more than one such branches, in other words any note can have multiple placements in the tree. For lack of better word we call this "[[cloning|Cloning notes]]".
|
||||||
|
|
||||||
|
## Prefix
|
||||||
|
|
||||||
|
Prefix is branch (placement) specific title prefix for the note. Let's say you have your note placed into two different places in the tree, but you want to change the title a bit in one of the placements. For this you can use prefix.
|
||||||
|
|
||||||
|
To edit prefix, right click on a note in the tree pane and choose "Edit branch prefix".
|
||||||
|
|
||||||
|
## Subtree
|
||||||
|
|
||||||
|
Subtree is a set of notes consisting of a particular note (subtree root) and all its children, children of these children (= all its descendants). Some operations work on subtrees (e.g. export).
|
Loading…
x
Reference in New Issue
Block a user