You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: db-version-changes.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ Miscelleanous changes:
51
51
* Default date picker now has an input for typing a date in natural language.
52
52
* There is no re-index like in file graphs.
53
53
* 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.
55
55
* New commands:
56
56
* Run the command `Customize appearance` to display a modal of appearance related settings.
57
57
* Commands from [property shortcuts](./db-version#property-shortcuts).
@@ -105,10 +105,9 @@ Miscelleanous changes:
105
105
106
106
#### Namespaces
107
107
* 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.
108
110
* 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.
112
111
* The macro `{{namespace}}` is deprecated. Use the Library feature instead.
Copy file name to clipboardExpand all lines: db-version.md
+22-9Lines changed: 22 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Description
2
2
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).
4
4
5
5
NOTE: While there is an [automated backup](#automated-backup) for DB graphs, we recommend only using DB graphs for testing purposes.
6
6
@@ -20,6 +20,7 @@ NOTE: While there is an [automated backup](#automated-backup) for DB graphs, we
20
20
*[Bulk Actions](#bulk-actions)
21
21
*[Views](#views)
22
22
*[Tables](#tables)
23
+
*[Library](#library)
23
24
*[DB Graph Importer](#db-graph-importer)
24
25
*[Automated Backup](#automated-backup)
25
26
*[Export and Import](#export-and-import)
@@ -157,24 +158,32 @@ Ways to create tags:
157
158
* In a block type `#NAME` and press `Cmd-Enter`. An inline tag is created.
158
159
* Paste text in a block that includes `#NAME`. An inline tag is created for tag `NAME`.
159
160
* 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.
161
162
* In a block type `#NAME` and press `Esc`. An inline tag is created. Not recommended as it doesn't work for all use cases.
162
163
* Convert any page to a tag by clicking on the three dots menu in the upper right corner and clicking `Convert to Tag`.
163
164
164
165
Any tag can be converted to a page by clicking on the three dots menu and clicking `Convert Tag to Page`.
165
166
166
167
### Parent Tags
167
168
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`.
169
170
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.
171
180
172
181
### Configure a New Tag
173
182
174
183
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:
175
184
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.
178
187
179
188
### Tagged Node
180
189
@@ -354,6 +363,12 @@ A table displays a group of nodes as rows and a node's properties as columns. A
354
363
* 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`.
355
364
* Keyboard shortcuts: Use arrow keys to navigate between cells. Press `Enter` to edit a cell and `Esc` to exit editing.
356
365
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
+
357
372
## DB Graph Importer
358
373
359
374
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
374
389
### Importer Todos
375
390
376
391
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`
378
393
* Import org mode files
379
394
* Import text files e.g. *.txt or *.edn
380
-
* Import advanced command blocks that begin with `#+BEGIN`
381
395
* Query macros and related query filters that have changed
0 commit comments