Commit Graph

342 Commits

Author SHA1 Message Date
rcmerci
f9783b9a2f only parse pasting text when current editing block isn't empty 2021-05-18 15:50:02 +08:00
rcmerci
288da4fca3 transform text into blocks when pasting text from external 2021-05-18 15:50:02 +08:00
charlie
8a8af96d0e fix(api): insert block with specific uuid & siblings issue 2021-05-18 15:48:22 +08:00
Tienson Qin
f1c535088d fix: add to contents
Also, add api-insert-new-block!
2021-05-18 11:57:46 +08:00
Tienson Qin
aaa839a99b fix: delete blocks && jump to next block in linked references 2021-05-18 11:57:46 +08:00
Tienson Qin
324ab6b170 wip: refactor db references && general queries 2021-05-18 11:57:46 +08:00
Tienson Qin
c5a7e80c5f fix: disallow delete when the current block has children and
Its previous sibling has children too.
2021-05-17 22:46:53 +08:00
rcmerci
4fe8d751d6 chore: clear codes 2021-05-17 20:35:30 +08:00
rcmerci
a7a9f649c2 remove redundant ! on property-related funcs & add some tests
enter the commit message for your changes. Lines starting
2021-05-17 20:35:30 +08:00
rcmerci
e8c68a62e5 add util.property & move unit-tests 2021-05-17 20:35:30 +08:00
Weihua Lu
474772be2a fix: rework zoom-in/zoom-out behavior 2021-05-17 16:15:55 +08:00
Weihua Lu
e218ef7491 fix: add default copy behavior 2021-05-17 13:59:34 +08:00
Weihua Lu
eb7c26dd96 fix: do not zoom-in non-exist block 2021-05-17 11:59:04 +08:00
Tienson Qin
91ce40242a fix: tag autocomplete 2021-05-16 11:05:02 +08:00
Tienson Qin
3ca38044cd fix: tag with page references 2021-05-14 23:55:20 +08:00
rcmerci
3ab36705cc update inserting block strategy 2021-05-14 18:12:31 +08:00
Tienson Qin
3d3a5ff35f fix: revert commit on both -get-parent-id and -get-parent 2021-05-14 17:49:42 +08:00
Tienson Qin
9f552514ee fix: can't paste pictures in the first block of any new page 2021-05-14 15:37:15 +08:00
rcmerci
2eaf0f38bd enhance(editor): insert block
1. move the cursor to the new block when press "Enter" at the
beginning of the parent block
2. new block should be a child when press "Enter" not at the beginning
of the parent block
2021-05-13 21:45:01 +08:00
Tienson Qin
085b8937e0 fix: file output for page properties 2021-05-13 21:33:17 +08:00
Tienson Qin
9273ee83f2 fix: exclude built-in properties when comparing content 2021-05-13 21:24:27 +08:00
rcmerci
5277780d51 [wip] fix undo insert block 2021-05-13 21:24:27 +08:00
Tienson Qin
4e333eb78e fix: Deleting embedded blocks deletes source material
close #1836 #1652
2021-05-13 16:47:33 +08:00
Tienson Qin
74958f83f7 fix: block marker/property not updated correctly if removed in the
text

close #1837
2021-05-13 14:49:20 +08:00
rcmerci
aefe814671 chore: clear code 2021-05-13 10:21:08 +08:00
rcmerci
f6bfe2ff2d fix(editor): wrong indentation on inserted new block 2021-05-13 10:16:35 +08:00
rcmerci
c3ecddb176 fix: wrong block/title 2021-05-12 16:01:31 +08:00
Tienson Qin
ced50c4482 fix: the next block might inherits block attributes from the previous block 2021-05-11 22:23:26 +08:00
rcmerci
09b2ea368d split util.marker & util.priority lib 2021-05-11 19:01:13 +08:00
Tienson Qin
ac7f6e1967 fix: remove non existed block refs when saving a block to avoid blank page 2021-05-11 17:54:31 +08:00
Tienson Qin
83c481ab09 fix: block properties 2021-05-11 17:21:13 +08:00
Tienson Qin
189d94554f fix: Copy block ref sometimes do not saved correctly
close #1798
2021-05-11 17:00:43 +08:00
Tienson Qin
d136d44798 Fix: linked refs not updated
close #1777
2021-05-10 22:44:15 +08:00
rcmerci
4d2c5f05a6 fix(editor): pasted template had chaotic orders 2021-05-10 20:45:00 +08:00
Tienson Qin
a2d35f6208 fix: can't input page reference with spaces 2021-05-10 20:43:56 +08:00
charlie
95ae0f5317 fix(editor): zoom out page error #1758 2021-05-10 15:41:28 +08:00
Tienson Qin
c78b225bbb fix: repeated tasks records 2021-05-10 12:43:32 +08:00
Weihua
018d517348 feat: more bash-like basic in block editing shortcuts (#1741)
* feat: shortcut for kill line, cursor begin/end, kill block

* feat: move or kill by word

* fix: off by one

* fix: til alt need be avoid on mac

* feat: false to disable shortcut

* fix: disable more binding for mac

* fix: add prevent default for global shortcuts

* fix: ctrl+shift+b/f move by word for mac

* fix: move backword zero bug
2021-05-10 10:44:54 +08:00
Weihua Lu
bc49715f35 fix: delete text selection 2021-05-10 10:01:00 +08:00
Weihua Lu
6be6ce76bc chore: remove duplicated code 2021-05-09 00:26:18 +08:00
Tienson Qin
2e0c241ba6 enhance: don't clear selection after copied
close #1733
2021-05-08 22:12:16 +08:00
Tienson Qin
701f4facfd fix: add timetracking back 2021-05-08 22:07:28 +08:00
Tienson Qin
7a78e805fd enhance: jump to edit the first block when creating a new page 2021-05-08 19:57:44 +08:00
rcmerci
67949bb1f5 fix: cond-fn in cycle-todo! 2021-05-08 19:23:47 +08:00
rcmerci
bfae935d0e fix cycle-todo! on # heading 2021-05-08 19:14:40 +08:00
Tienson Qin
310f69203b enhance: hide built-in properties when editing 2021-05-08 17:40:26 +08:00
Tienson Qin
2456e2bedd fix: some assets can't be paste due to their path names 2021-05-07 22:40:26 +08:00
Tienson Qin
443812b942 fix: template properties 2021-05-07 21:31:10 +08:00
Tienson Qin
e3b325798a fix: DELETE key can result in wrong tree relationship 2021-05-06 19:36:06 +08:00
Tienson Qin
975c59728c fix: don't delete && concat if the block has a child 2021-05-06 16:49:39 +08:00