Hierarchies
Dendron has hierarchies. They are represented by .
delimited filenames.
Below is the example of converting a normal hierarchy from a file system to a Dendron hierarchy.
.
βββ project1/
βββ project1/designs/
β βββ project1/designs/promotion.png
βββ project1/paperwork/
β βββ project1/paperwork/legal.md
βββ project1/tasks/
βββ project1/tasks/task1.md
βββ project1/tasks/task2.md
The same hiearchy in Dendron would look like the following:
.
βββ project1.md
βββ project1.designs.md
βββ project1.designs.promotion.md
βββ project1.paperwork.md
βββ project1.paperwork.legal.md
βββ project1.tasks.md
βββ project1.tasks.task1.md
βββ project1.tasks.task2.md
Why Hierarchies?
Dendron is built around hierarchies and the axiom that a canonical hierarichal representation of notes is one of the most effective ways of managing large numbers of notes. You can read more about the thoughts behind this here.
Whatβs with the .
βs?
- It allows each file to also be a folder. This means your notes can have data but also contain other notes.
- It makes it much easier to perform certain refactoring operations
- for example, say you had the following schema ```yml
- id: a-parent children:
- child-a
- child-b
- id: child-a
- id: child-b ```
- lets say you wanted to make
child-b
a child ofchild-a
```yml - id: a-parent children:
- child-a
- id: child-a children:
- child-b
- id: child-b ```
- with the classical folder hierarchy, you would need to turn
child-a
into a folder and then create a custo file to hold the content from the originalchild-a
. βββ a-parent βββ child-a βββ child-a-note βββ child-b
- with the
.
delimited hierarchy, this becomes a simple rename operation. βββ a-parent.child-a βββ a-parent.child-a.child-b
- It allows us to create stubs for parts of the hierarchy that donβt exist and not clutter our file system with empty folders
- with the classical folder hierarchy
. βββ a-parent βββ child-a βββ grandchild-a βββ great-grandchild-a.md
- with the
.
delimited hierarchy. βββ a-parent.child-a.grandchild-a.great-grandchild-a.md
- with the classical folder hierarchy