Commit Graph

899 Commits

Author SHA1 Message Date
Peng Xiao
66739b5f41 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-29 14:42:06 +08:00
Tienson Qin
00c1a238c1 fix: Template properties causes empty "template" property to show up
address #6839
2022-09-29 10:44:16 +08:00
Peng Xiao
4520399ddf Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-28 10:29:20 +08:00
Tienson Qin
a27a270b04 fix: CI 2022-09-27 16:12:23 +08:00
Tienson Qin
8b144269f7 refactor: unify heading UX for both markdown and org mode 2022-09-27 16:12:23 +08:00
Gabriel Horner
1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Peng Xiao
fd94862312 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-24 09:42:00 +08:00
Gabriel Horner
2ce6dfad41 Use catch :default for default error handling in cljs
This is considered normal practice for cljs. See
https://clojure.atlassian.net/browse/CLJS-661 for when it was introduced
and background on it
2022-09-23 02:00:55 +08:00
Tienson Qin
336fa578d5 refactor: replace directives(front matter or org) with properties 2022-09-09 12:37:55 +08:00
Peng Xiao
33885e619b Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-01 10:29:29 +08:00
Junyi Du
64b6a378c6 fix: enlarge timeout for focusing block after insert new block 2022-08-31 22:14:03 +08:00
Peng Xiao
0ff5324c02 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-29 10:45:15 +08:00
Viktor Moros
f5824322b3 Improve backtick autopairing (#6496)
* If you type a backtick and then some letters and then another backtick, the last backtick should close the first one and not spawn another autopair
2022-08-27 12:32:46 +08:00
Peng Xiao
1e607907f3 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-26 15:46:20 +08:00
Tienson Qin
d823b9669f fix: transact block refs before inserting 2022-08-26 13:00:42 +08:00
Peng Xiao
37d0ad2524 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-24 16:50:57 +08:00
Tienson Qin
fac1180a07 fix: disallow cutting blocks when find in page 2022-08-24 16:47:49 +08:00
Peng Xiao
62e962a4b4 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-23 11:33:30 +08:00
Tienson Qin
024fad1219 fix: arrow up/down closes property autocomplete 2022-08-23 09:39:24 +08:00
Tienson Qin
6642b46cc8 fix: page properties not cleared when cutting the first block 2022-08-22 18:39:53 +08:00
Peng Xiao
3a732aa4e2 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-22 17:55:46 +08:00
Andelf
c579053068 fix(editor): skip empty block when cycle todo 2022-08-22 09:17:57 +08:00
Peng Xiao
5d35e21e8b Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-18 11:57:48 +08:00
Tienson Qin
f502de3ad4 fix: e2e test 2022-08-18 08:18:58 +08:00
Tienson Qin
934fa7291a fix: autocomplete modal closes immediately if the cursor is after ]
close #6392
2022-08-18 06:38:23 +08:00
Peng Xiao
4d0478a515 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-16 11:47:26 +08:00
Tienson Qin
220a55b756 fix: collapsing multi-line block
close #6374
2022-08-16 11:21:59 +08:00
Peng Xiao
d4c0ae900b Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-15 22:31:08 +08:00
Tienson Qin
982e8e1b8a fix: lint warnings 2022-08-15 21:58:46 +08:00
Tienson Qin
ca7b86f082 perf: sub selected block 2022-08-15 21:58:46 +08:00
Tienson Qin
39e2f0ac1c fix: shift-select up 2022-08-15 21:58:46 +08:00
Tienson Qin
442b65d210 fix: can't delete selected blocks in queries 2022-08-15 21:58:46 +08:00
Tienson Qin
ca1c4ee479 fix: delay custom queries 2022-08-15 21:58:46 +08:00
Phoenix Eliot
3c6514ee4b Fix moving cursor outside brackets (#6283)
* Add data attribute to modals for testing

* Add several tests for moving cursor outside/within brackets

Update tests to be more reliable and DRYer

Rename action menu to autocomplete menu; fix test race condition

Rename 'action modal' to 'autocomplete menu'

* Check for being outside of brackets on every keyup

Remove dead code

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2022-08-15 18:47:26 +08:00
Phoenix Eliot
7cb1fc9c3c Add action whitelist and special handling for link/image input dialog 2022-08-15 17:45:39 +08:00
Phoenix Eliot
bc00dba369 Close action menu when pressing escape 2022-08-15 17:45:39 +08:00
Peng Xiao
1b42079949 fix: make-asset-url should support data url 2022-08-15 16:03:03 +08:00
Peng Xiao
a54614c866 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-12 14:09:06 +08:00
Phoenix Eliot
bb199c4de5 Fix wrapped-by? utility function
Improve readability of test failures, add more unit tests
2022-08-11 22:58:51 +08:00
Peng Xiao
d2c3b88865 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-11 18:40:51 +08:00
Giuseppe D'Andrea
4b7ab91488 fix #6309 2022-08-11 16:58:05 +08:00
Tienson Qin
eeb827a1d3 fix: performance degrading for nested linked references
Fix #6316.

This commit also fixed the issue that toggle block children doesn't
work sometimes.
2022-08-11 16:38:00 +08:00
Peng Xiao
866b4793bd Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-08 11:20:21 +08:00
Giuseppe D'Andrea
192a30ae1b fix left-right navigation after selecting multiple blocks 2022-08-08 08:44:08 +08:00
Giuseppe D'Andrea
b129a703ec fix up-down navigation after selecting multiple blocks 2022-08-08 08:44:08 +08:00
Peng Xiao
712c49906c fix: editing issue 2022-08-05 14:16:19 +08:00
Peng Xiao
b30adea656 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-05 13:59:06 +08:00
Peng Xiao
5ce5a1bfc3 fix: remove debug code 2022-08-05 11:33:14 +08:00
Peng Xiao
5f6dad4526 quick add single block 2022-08-05 11:28:24 +08:00
Phoenix Eliot
7eef27c020 Add comments to editor keyup-handler cases 2022-08-04 13:38:17 -04:00