Skip to content

Commit c1ceebf

Browse files
another major update for db version features
Also rehaul db-version-changes to take into account the OG split announcement
1 parent c625d73 commit c1ceebf

2 files changed

Lines changed: 82 additions & 73 deletions

File tree

db-version-changes.md

Lines changed: 28 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,27 @@
11
## Description
22

3-
This page describes changes for existing Logseq features on the [database version](https://github.com/logseq/logseq/pull/9858). Some of these changes may change depending on user feedback.
3+
This page describes changes for existing Logseq features on the [database version](https://github.com/logseq/logseq/pull/9858). The changes described here only apply to DB graphs. File graphs have been split off into https://github.com/logseq/og as [explained in more detail with this post](https://logseq.io/page/b2ad9ce1-9cb7-4436-8083-54cb4516d324/df4dc09d-0a12-4c87-904e-22a9bf4c350a).
44

55
## Overview
66

7-
* [Changes for All Graphs](#changes-for-all-graphs)
8-
* [DB Graph Changes](#db-graph-changes)
9-
* [File Graph Changes](#file-graph-changes)
7+
* [High Level Changes](#high-level-changes)
8+
* [Miscelleanous Changes](#miscelleanous-changes)
9+
* [Changes By Feature](#changes-by-feature)
1010

11-
## Changes for All Graphs
11+
## High Level Changes
1212

13-
The following changes affect both file and the new db graphs:
14-
* To simplify editor `/` commands, [Commands](https://docs.logseq.com/#/page/commands) and [Advanced Commands](https://docs.logseq.com/#/page/advanced%20commands) are merged together under `/`.
15-
* A good amount of the UI is rewritten to use [shadcn](https://github.com/shadcn-ui/ui). This means a more beautiful, consistent and powerful UI!
1613
* The application performance is better - loading faster, handling larger graphs and large tables. See https://github.com/logseq/logseq/pull/11774 for latest details.
17-
* On desktop, the graph cache directory `~/.logseq/graphs/` has moved to `~/logseq/graphs`. See [DB Graph Directories](#db-graph-directories) for how they are used for DB graphs.
18-
* Plugins can be used from the web. For security reasons only [plugins configured with no "effect"](https://github.com/logseq/marketplace#how-to-submit-your-plugin) are usable. We will gradually open up effect plugins to certified/trustworthy plugins.
19-
* On browser, multiple tabs can be opened and kept in sync, even when offline. Syncing between tabs _does not_ require a sync server.
20-
* The visibility of left sidebar items are configurable. To configure, hover over the `Navigations` header and click on the filter icon to open a dropdown for toggling visibility of sidebar items.
21-
22-
## DB Graph Changes
23-
24-
High level changes:
2514
* Blocks and pages are united as [nodes](./db-version.md#nodes). They are referenced as `[[]]` and blocks no longer use `(())` for referencing.
2615
* Properties have a lot more functionality with the [new properties](./db-version.md#properties)!
2716
* Previous tags should behave like before that an inline tag is entered using `Cmd-Enter`.
28-
* NOTE: Pressing enter on a `#` input triggers a powerful [new tags](./db-version.md#tags) feature.
17+
* NOTE: Pressing enter on a `#` input triggers a powerful [tags](./db-version.md#tags) feature.
2918
* All blocks and pages have created-at and updated-at timestamps! With this built-in dimension of time, time powered features are possible.
30-
* The [previous tables](https://docs.logseq.com/#/page/tables) including version 2 are replaced by a shadcn based table. The new tables have inline editing like spreadsheets by default. See [here](./db-version.md#tables) for more.
19+
* The [previous tables](https://docs.logseq.com/#/page/tables) including version 2 are replaced by a shadcn based table. The new tables have inline editing like spreadsheets by default. See [here](./db-version.md#tables) for more.
20+
* A good amount of the UI is rewritten to use [shadcn](https://github.com/shadcn-ui/ui). This means a more beautiful, consistent and powerful UI!
3121
* Flashcards have been re-implemented with [a new algorithm](https://github.com/open-spaced-repetition/free-spaced-repetition-scheduler). It isn't compatible with the previous flashcards so none of the properties and srs data from the previous version is imported.
32-
* Markdown is the only supported format. Org mode file graphs will be able to convert to DB graphs.
22+
* Markdown is the only supported format. Org mode files are no longer supported.
3323
* Zotero integration is no longer a built-in feature and will hopefully be moved to a plugin.
24+
* To simplify editor `/` commands, [Commands](https://docs.logseq.com/#/page/commands) and [Advanced Commands](https://docs.logseq.com/#/page/advanced%20commands) are merged together under `/`.
3425
* A few [Advanced Commands](https://docs.logseq.com/#/page/advanced%20commands) are available. More may become available as requested. The available commands are:
3526
* `>Query` is now `/Advanced Query`
3627
* `>Src` is now `/Code block`
@@ -39,47 +30,47 @@ High level changes:
3930
* Pdf annotations [have a tag](./db-version.md#more-tags). This allows annotations to be viewed across pdfs and to have custom views of annotations while using the pdf viewer.
4031
* Markdown syntax for blocks e.g. a heading or quote is no longer visible or editable. Removing a block's heading is done by right-click on a block and choosing the crossed out H icon.
4132
* Slides have been removed as a feature and we can support it as 3rd party plugin.
33+
* Whiteboards have been removed as a feature and will hopefully be available as a plugin.
4234
* Excalidraw e.g. `/draw` is no longer a built-in feature and will hopefully be moved to a plugin.
4335
* Templates are created by tagging a block with `#Template` as described [here](./db-version.md#templates). Previously templates were made by adding a `template` property or through a menu item `Make a template`.
36+
* Plugins can be used from the web. For security reasons only [plugins configured with no "effect"](https://github.com/logseq/marketplace#how-to-submit-your-plugin) are usable. We will gradually open up effect plugins to certified/trustworthy plugins.
4437

45-
WIP changes:
46-
* RTC a.k.a. DB version sync will be enabled later.
47-
* Add back support for dynamic variables.
48-
* Whiteboards are disabled for now and will be enabled later.
38+
## Miscelleanous Changes
4939

50-
Miscelleanous changes:
40+
* On desktop, the graph cache directory `~/.logseq/graphs/` has moved to `~/logseq/graphs/`. See [Graph Directories](#graph-directories) for how they are used for DB graphs.
5141
* Scripts using [nbb-logseq](https://github.com/logseq/nbb-logseq) can read and write graphs. Previously with file graphs, scripts could only read graphs.
5242
* Embedded pages and blocks look almost the same as other nodes. The main indicator of an embed will be an icon to the left of the block.
5343
* Default date picker now has an input for typing a date in natural language.
5444
* There is no re-index like in file graphs.
55-
* For browsers, currently only one tab can be open. This is a limitation we hope to remove later.
5645
* `All Pages` screen is renamed to `Pages`. Also it can toggle between table and list view.
46+
* On browser, multiple tabs can be opened and kept in sync, even when offline. Syncing between tabs _does not_ require a sync server.
47+
* The visibility of left sidebar items are configurable. To configure, hover over the `Navigations` header and click on the filter icon to open a dropdown for toggling visibility of sidebar items.
5748

58-
### Changes by Feature
49+
## Changes by Feature
5950

60-
#### Pages
51+
### Pages
6152
* Page properties are no longer set by using the first block of a page. Rather, a page property is [set the same way a block property is](./db-version.md#add-and-edit-property-values) - by editing from the page title (block content).
6253
* `#` and `/` are disallowered characters for page names.
6354

64-
#### Tags
55+
### Tags
6556
* Tags have [a lot of new functionality](./db-version.md#tags).
6657
* When a tag is added on a block, it now displays to the right of the block. To inline a tag like before, press `Cmd-Enter` in the tag dropdown.
6758

68-
#### Tasks
59+
### Tasks
6960

7061
* Using terms from the [previous tasks](https://docs.logseq.com/#/page/tasks), a task marker, priority, deadline and scheduled are respectively now `Status`, `Priority`, `Deadline` and `Scheduled` properties on a task.
7162
* Logbook timestamps have been replaced with Status change history.
7263
* Tasks are no longer created by typing keywords like `TODO` but instead with commands like '/todo'.
7364
* Read more about the [new tasks](./db-version.md#tasks).
7465

75-
#### Assets
66+
### Assets
7667
* Assets can have custom user properties.
7768
* Assets are blocks and thus can show their linked references when zoomed in on the asset block.
7869
* Assets are resized by hovering over them and then dragging the left-right arrows that are visible over the scrollbars.
7970
* Maximum allowed asset size is 100M
8071
* Pdf annotations are visible under an asset block by default. Previously this view was in a separate page and required clicking in the pdf viewer.
8172

82-
#### Queries
73+
### Queries
8374

8475
* Read more about the [new queries](./db-version.md#queries).
8576
* [Simple queries](https://docs.logseq.com/#/page/queries)
@@ -106,42 +97,31 @@ Miscelleanous changes:
10697
* The attribute `:block/path-refs` no longer exists. Please use `(has-ref ?b ?ref)` instead of `[?b :block/path-refs ?ref]`.
10798
* Since block timestamps are available, they display in table view where possible.
10899

109-
#### Namespaces
100+
### Namespaces
110101
* 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.
111102
* 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.
112103
* 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.
113104
* 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.
114105
* The macro `{{namespace}}` is deprecated. Use the Library feature instead.
115106

116-
#### User Config
107+
### User Config
117108

118109
* A graph's config.edn, custom.js and custom.css files are only editable within Logseq from `Settings`.
119110
* The following config.edn options are no longer used by any graphs: `:ref/linked-references-collapsed-threshold`.
120111
* The following config.edn options are no longer used: `:block-hidden-properties, :default-templates, :favorites, :hidden, :ignored-page-references-keywords, :journals-directory, :pages-directory, :preferred-format, :preferred-workflow, :whiteboards-directory, :feature/enable-block-timestamps?, :file/name-format, :file-sync/ignore-files, :journal/file-name-format, :journal/page-title-format, :logbook/settings, :org-mode/insert-file-link?, :property/separated-by-commas, :property-pages/enabled?, :property-pages/excludelist, :srs/initial-interval, :srs/learning-fraction` in DB graphs. See [this code](https://github.com/logseq/logseq/blob/b0a255f96bfd512d5b87acca52c8d9f958c6a593/deps/common/src/logseq/common/config.cljs#L124-L157) for more details.
121112

122-
#### Search
113+
### Search
123114
* When search modal first opens, recently updated pages display at the top.
124115
* Tags can be created from the modal as described in [tags](./db-version.md#tags).
125116

126-
#### DB Graph Directories
117+
### Graph Directories
127118

128119
* Graphs have a convention of `~/logseq/graphs/GRAPH-NAME` where `GRAPH-NAME` is the graph name.
129120
* Inside a graph directory:
130121
* `db.sqlite` - Stores all your graph's data including user configs.
131122
* `assets/` - Stores assets like before.
132123
* `logseq/` inside a directory no longer exists.
133124

134-
#### API
125+
### API
135126
* All property related calls like `upsertBlockProperty` work with DB graphs. Property values can now be numbers and booleans. Properties are namespaced to `:plugin.property._api`
136-
* See [this test file](https://github.com/logseq/logseq/blob/master/clj-e2e/test/logseq/e2e/plugins_basic_test.clj) for using the api with DB graphs.
137-
138-
## File Graph Changes
139-
140-
* File graphs are no longer supported in browser.
141-
* There is no longer a [conversion feature for filename formats](https://docs.logseq.com/#/page/filename%20format)
142-
* Attribute changes:
143-
* The attribute `:block/content` was renamed to `:block/title`. If used in an advanced query including in config.edn's `:default-queries`, change it to use `:block/title` e.g. `[?b :block/content "content"]` -> `[?b :block/title "content"]`
144-
* The attribute `:block/original-name` was renamed to `:block/title`. If used in an advanced query including in config.edn's `:default-queries`, change it to use `:block/title` e.g. `[?b :block/original-name "name"]` -> `[?b :block/title "name"]`
145-
* The attribute `:block/journal?` no longer exists. If used in an advanced query including in config.edn's `:default-queries`, change it to use `:block/type` e.g. `[?p :block/journal? true]` -> `[?p :block/type "journal"]`
146-
* The attribute `:block/left` no longer exists and has been replaced by `:block/order`. It is not recommended to write queries with this attribute.
147-
* The attribute `:block/path-refs` no longer exists. Please use `(has-ref ?b ?ref)` instead of `[?b :block/path-refs ?ref]`.
127+
* See [this test file](https://github.com/logseq/logseq/blob/master/clj-e2e/test/logseq/e2e/plugins_basic_test.clj) for using the api with DB graphs.

0 commit comments

Comments
 (0)