Skip to content

Commit dd8fe3a

Browse files
Add changes for past month
Library, multi-parent tags, Library and namespaces, more importer todos done
1 parent faedc7d commit dd8fe3a

2 files changed

Lines changed: 25 additions & 13 deletions

File tree

db-version-changes.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Miscelleanous changes:
5151
* Default date picker now has an input for typing a date in natural language.
5252
* There is no re-index like in file graphs.
5353
* For browsers, currently only one tab can be open. This is a limitation we hope to remove later.
54-
* `All Pages` view can toggle between table and list view.
54+
* `All Pages` screen is renamed to `Pages`. Also it can toggle between table and list view.
5555
* New commands:
5656
* Run the command `Customize appearance` to display a modal of appearance related settings.
5757
* Commands from [property shortcuts](./db-version#property-shortcuts).
@@ -105,10 +105,9 @@ Miscelleanous changes:
105105

106106
#### Namespaces
107107
* Creating namespaces through `/` in `[[]]` should work as before e.g. `[[foo/bar/baz]]` creates the hierarchy of `foo` > `bar` > `baz`. Unlike before, the reference will turn into `[[baz]]` after it is created.
108+
* Pages can edit their namespace explicitly by going to the `Library` page and moving it under the desired parent namespace. Previously managing a namespace could only be done by renaming a namespace.
109+
* The `Hierarchy` section displays above a namespaced page's blocks. It displays as a collapsible tree as this allows for viewing large namespaces more easily.
108110
* Namespaced pages no longer have their namespace embedded in their page name. The big advantage of this is that renaming any part of the namespace does not affect all the pages under a namespace.
109-
* Pages can manage their namespace explicitly by using the `Parent` property. Previously managing a namespace could only be done by renaming a namespace. Using a property allows for easier management of namespace relationships.
110-
* The `Hierarchy` section is called `Children` for DB graphs. It now displays as a collapsible tree as this allows for viewing large namespaces more easily.
111-
* Children pages like `baz` above link back to its parent(namespace) with the `Parent` property.
112111
* The macro `{{namespace}}` is deprecated. Use the Library feature instead.
113112

114113
#### User Config

db-version.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Description
22

3-
This page describes DB (database) graph functionality as of June 3rd. See [here](https://test.logseq.com/#/) to try the latest stable version. If you're an existing user of Logseq, you'll be interested in [changes with the db version](./db-version-changes.md).
3+
This page describes DB (database) graph functionality as of July 3rd. See [here](https://test.logseq.com/#/) to try the latest stable version. If you're an existing user of Logseq, you'll be interested in [changes with the db version](./db-version-changes.md).
44

55
NOTE: While there is an [automated backup](#automated-backup) for DB graphs, we recommend only using DB graphs for testing purposes.
66

@@ -20,6 +20,7 @@ NOTE: While there is an [automated backup](#automated-backup) for DB graphs, we
2020
* [Bulk Actions](#bulk-actions)
2121
* [Views](#views)
2222
* [Tables](#tables)
23+
* [Library](#library)
2324
* [DB Graph Importer](#db-graph-importer)
2425
* [Automated Backup](#automated-backup)
2526
* [Export and Import](#export-and-import)
@@ -157,24 +158,32 @@ Ways to create tags:
157158
* In a block type `#NAME` and press `Cmd-Enter`. An inline tag is created.
158159
* Paste text in a block that includes `#NAME`. An inline tag is created for tag `NAME`.
159160
* Configure a `Node` property type to have a new tag config.
160-
* Configure a new tag to have a `Parent`, the new `Parent` value becomes a tag.
161+
* Configure a new tag to have an `Extends` property, the new `Extends` value becomes a tag.
161162
* In a block type `#NAME` and press `Esc`. An inline tag is created. Not recommended as it doesn't work for all use cases.
162163
* Convert any page to a tag by clicking on the three dots menu in the upper right corner and clicking `Convert to Tag`.
163164

164165
Any tag can be converted to a page by clicking on the three dots menu and clicking `Convert Tag to Page`.
165166

166167
### Parent Tags
167168

168-
New tags can have a parent tag, defaulting to `Root Tag` when none is specified. Allowing new tags to be related to each other as a parent to child is useful as it allows tags to organized in a hierarchy. This is similar to directories on your computer. When a new tag is used as a parent, you can see the tag hierarchy under it by navigating to the tag's page and seeing a `Children` section.
169+
New tags can have multiple parent tags via the `Extends` property and default to the `Root Tag` as a parent. Parent tags are powerful as the new tag inherits the properties from each of its parent tags. For example, say we have `#Book` with property `author` and `#MediaObject` with property `duration`. If we create a new `#Audiobook` with property `readBy` and give it parents of `#Book` and `#MediaObject`, any node tagged with `#Audiobook` would have 3 properties: `author`, `duration` and `readBy`.
169170

170-
A powerful feature of using a parent tag is that the new tag inherits the properties from its parent. For example, if we created a new `#Actor`, made its parent `#Person` from above and gave it an additional `actedIn` property. `#Actor` would display 3 properties when used, with two coming from the parent: `lastName`, `birthday` and `actedIn`.
171+
Parent tags also provide a way of organizing tags in a tree hierarchy. Since a new tag can have multiple parents, it can appear multiple times in a hierarchy. For example, here's the tree hierarchy of the example in the previous paragraph:
172+
173+
- Root Tag
174+
- Book
175+
- AudioBook
176+
- MediaObject
177+
- AudioBook
178+
179+
On any new tag page that is a parent tag, you can see this hierarchy under the `Children` section.
171180

172181
### Configure a New Tag
173182

174183
New tags are configurable from their page. Navigate to their page by using [Search](https://docs.logseq.com/#/page/search) or clicking on their `#` name links. On their page, hover over their name to see the rotating triangle icon to the left. Click on it to see the tag page's properties. Two important properties you'll see for configuring a tag:
175184

176-
* `Parent`: Use this to allow the new tag to inherit its parent's tag properties. By default the parent tag is the `Root Tag` which doesn't have any properties.
177-
* `Tag Properties`: These tag properties are inherited by every node that uses the new tag.
185+
* `Extends`: Use this to allow the new tag to inherit properties from one or more parent tags. This defaults to the `Root Tag` which doesn't have any properties.
186+
* `Tag Properties`: These tag properties are inherited by every node that uses the new tag. Drag one above or below the other to sort them. These properties will then display sorted on the tagged node.
178187

179188
### Tagged Node
180189

@@ -354,6 +363,12 @@ A table displays a group of nodes as rows and a node's properties as columns. A
354363
* Bulk actions: When rows in the table are selected, bulk actions appear in the table header. All the bulk actions [described above](#bulk-actions) are available except for the `Three dots menu`.
355364
* Keyboard shortcuts: Use arrow keys to navigate between cells. Press `Enter` to edit a cell and `Esc` to exit editing.
356365

366+
## Library
367+
368+
The Library is a built-in page that displays and edits namespaced pages as if they were blocks on a page. This is powerful as it allows us to use an outliner to build and organize a hierarchy of pages. This is useful for those who want to organize their pages as if they were under folders on a computer. Pages that have no common properties are a good fit for namespaces. Pages that have common properties are better organized with [new tags](#new-tags).
369+
370+
Pages that you want to namespace can be added to the Library with the `Add existing pages to Library` button.
371+
357372
## DB Graph Importer
358373

359374
The DB Graph Importer converts a file graph to a DB graph. An overview of what it does:
@@ -374,12 +389,10 @@ The DB Graph Importer converts a file graph to a DB graph. An overview of what i
374389
### Importer Todos
375390

376391
There are existing features that have a database equivalent that are still a TODO for the importer:
377-
* Import assets as `#Asset` and pdf annotations as `#PDF Annotation`
392+
* Import pdf annotations as `#PDF Annotation`
378393
* Import org mode files
379394
* Import text files e.g. *.txt or *.edn
380-
* Import advanced command blocks that begin with `#+BEGIN`
381395
* Query macros and related query filters that have changed
382-
* Page and block embeds
383396
* Import templates
384397

385398
### Convert File Graph to DB graph

0 commit comments

Comments
 (0)