Commit Graph

164 Commits

Author SHA1 Message Date
Tienson Qin
faea913a40 enhance: cut memory usage 2022-02-08 15:49:09 +08:00
Gabriel Horner
b3ee61b1ca Remove more unused fns 2022-01-27 14:11:59 -05:00
Tienson Qin
6aba8c3241 Improve long page editing performance (#3855)
* Remove expensive parsing when saving files

* Add limit to page blocks query

* Don't collapse block's body to make it compatible with other tools

* Alert if there're unsaved changes when switching graphs

* DB schema migration for :block/collapsed? from it's property

Co-authored-by: Andelf <andelf@gmail.com>
2022-01-18 10:37:31 +08:00
Tienson Qin
21f2237227 fix: lint errors 2022-01-16 13:06:54 +08:00
Tienson Qin
2401ce9e9a fix: property regression : # should be a delimiter
Close #3916

Tests added.
2022-01-16 12:39:41 +08:00
Tienson Qin
b26d4c3fc2 fix: page references in pre-block doesn't work 2022-01-13 22:46:41 +08:00
Gabriel Horner
7497d8b396 Lint a good chunk of src/main/frontend
Left some TODOs to discuss with others and others for me to finish
2022-01-11 17:34:54 -05:00
Junyi Du
7505b0dde6 fix: introduce more page-name sanity 2022-01-10 13:29:40 +08:00
Tienson Qin
704bcda9ad fix: Child namespace pages do not show up in hierarchy view if parent
page does not exist

Addresses #3641
2022-01-05 00:41:49 +08:00
Tienson Qin
0770893217 fix: normalize page names after parsing files 2022-01-04 21:37:44 +08:00
Tienson Qin
419f499c34 fix: links to empty pages in import result in lower-cases pages with no backlinks
Addresses #3718, #3724
2022-01-04 20:16:58 +08:00
Tienson Qin
329e7f2528 fix: use property/properties-ast? instead 2021-12-16 19:27:59 +08:00
Andelf
acabab5ba7 fix(editor): do not remove properties before parse 2021-12-16 19:23:10 +08:00
Tienson Qin
566ba16965 enhance: add blocks ast cache 2021-12-13 12:26:51 +08:00
Tienson Qin
c722f6ec83 fix: ignore properties when displaying block's body 2021-12-12 16:06:32 +08:00
Tienson Qin
d3fa2196b0 fix: Horizontal line not created with ---
close #3416
2021-12-11 14:09:17 +08:00
Tienson Qin
ae89f9970b fix: hide empty blocks 2021-12-11 13:27:28 +08:00
Tienson Qin
eb24a534ec fix: check content 2021-12-11 13:20:33 +08:00
Tienson Qin
7822848af8 chore: remove :block/title, :block/body and :block/unordered
For two reasons:

1. Reducing memory usage, both block/title and block/body are AST parsed
by Mldoc. After removing, logseq is able to handle 10k notes.

2. Simplify the db schema
2021-12-08 10:46:45 +08:00
Junyi Du
240b9a4584 fix: All Pages view lists all of the images 2021-11-24 11:37:08 +08:00
Tienson Qin
03cfc60a7e fix: Can't rename pages with nested titles
close #3245
2021-11-24 10:35:36 +08:00
Tienson Qin
9315b3bab4 fix: don't create empty pages for alias and tags page properties 2021-11-22 20:18:48 +08:00
leizhe
4779a5c98b Fix: create wrong pages if nested_link exist in graph
Let's say, if `[[[[A/B]] is page]] got referenced` exists as a link in
the graph, a `[[A` will be created. This PR fixes this issue.
2021-11-22 13:59:39 +08:00
Junyi Du
daae4932ad Some fix according to lint 2021-11-18 21:13:35 +08:00
Tienson Qin
ad7de321e0 enhance: display a warning if a block's content include multiple lists
or headings.
2021-11-17 21:07:32 +08:00
leizhe
538b0d8ad6 refactor: remove unnecessary codes 2021-11-10 11:52:48 +08:00
leizhe
9c33cf4b6b fix https://github.com/logseq/logseq/issues/2866 2021-10-20 16:34:49 +08:00
Tienson Qin
63b672dcf8 refactor: remove :block/file from non-page blocks 2021-10-11 12:14:41 +08:00
Tienson Qin
38d81b4ed0 fix: Two of the same query with mixed syntax causes hanging
close #2857
2021-09-26 11:39:10 +08:00
Tienson Qin
821ffecaf3 enhance: remove block/anchor 2021-09-26 10:22:23 +08:00
leizhe
f9a6b24c87 fix: only remove break_line in paragraph 2021-09-23 19:24:13 +08:00
leizhe
99295ed26a fix: non-paragraph elements not showing up 2021-09-23 19:24:13 +08:00
leizhe
0774e2b74a Fix: extra empty line if SCHEDULED and DEADLINE exist
Fix https://github.com/logseq/logseq/issues/2506
This issue was also mentioned in
https://discuss.logseq.com/t/formatting-of-scheduled-items/1756/2

This PR offers an in-elegant way to remove the break_line element
following a timestamp element. I suppose this should be resolved in the
mldoc side. Anyway, this PR can be treated as a solution.
2021-09-23 19:24:13 +08:00
Tienson Qin
98cb06b86e fix: Tag with brackets but without spaces creates an extra page
close #2742
2021-08-31 21:28:38 +08:00
Tienson Qin
4c3bdb0bf3 feat: git integration 2021-08-24 21:42:46 +08:00
Weihua Lu
86c2c0a2ee fix: some contains query doesn't work 2021-08-16 09:31:46 +08:00
Tienson Qin
5dfd9b1be4 fix: a page name can's be both started and ended with a slash
The reason is that it's corresponding file will be a hidden file.
2021-08-10 08:33:50 +08:00
Tienson Qin
41829e04cd fix: don't treat hex colors as pages
close #2556
2021-08-06 12:29:22 +08:00
Tienson Qin
6ea3d8d0c8 fix: date format crashes reindex
close #2495
2021-08-04 11:26:54 +08:00
Tienson Qin
2f6caed79e fix: some files might have wrong indentation at the beginning 2021-08-01 15:26:26 +08:00
Tienson Qin
6abca45828 fix: page ref not working as linked ref in property value
Also, fixed page ref lowercased in property value. eg: authors::
[[Jeff Howard]] -> jeff howard

Zotero tags will be parsed too.
2021-07-28 23:45:26 +08:00
Tienson Qin
cc948b5a23 fix: don't parse quoted string as page references for properties 2021-07-27 22:57:30 +08:00
Tienson Qin
9e35c0c6bd fix: add debug helper to check left id conflicts 2021-07-23 23:30:19 +08:00
Tienson Qin
df05f5fb7a fix: left-id conflicts when parsing files 2021-07-23 20:23:38 +08:00
Tienson Qin
ac1f68004a fix: add timestamps to db 2021-07-13 15:34:43 +08:00
Tienson Qin
0cbf80e661 fix: block properties should be shown in the same order when saving 2021-07-11 19:35:18 +08:00
Tienson Qin
5a41300e80 Graph revamp (#2372)
Graph revamp
2021-07-06 23:48:58 +08:00
Tienson Qin
370ac5ae82 fix: don't parse empty string as pages 2021-06-30 23:18:51 +08:00
rcmerci
5582434a7a fix: use get-tag to extract tag value 2021-06-30 22:14:34 +08:00
rcmerci
1a547e944d update inline.link type
related to https://github.com/logseq/mldoc/pull/70
2021-06-30 22:14:34 +08:00