charlie
3dc019b567
Merge branch 'master' into feat/db
2024-06-26 10:02:41 +08:00
Tienson Qin
9c955081ab
fix: paste text instead of blocks when copied from another graph
...
Related to LOG-3123
2024-06-05 21:52:50 +08:00
Noah Pederson
b70768daa7
Fix Twitter's rename breaking macro wrapping ( #11325 )
...
* FIX twitter's rename causing automatic macro wrapping to not work
* ADD test to check for x => twitter macro expansion
2024-05-31 14:47:10 +08:00
Tienson Qin
1ec4796eff
refactor: replace :block/left with :block/order
...
Finally no need to worry about parent-left conflicts and broken chain.
With :block/order, we only need to re-compute new orders for siblings
with same order (it can happens if there're bugs in our code, or
updates from rtc), but it doesn't break UI.
Another huge potential benefit after discussing with Zhiyuan is:
Ee might be able to simplify both RTC and undo/redo, currently, we
need to handle each new op for both of them, with recently
refactorings like properties being db attributes, :block/order
is a string instead of a ref, we can handle most property value
conflicts using last-write-wins, and others (e.g. :block/parent,
property with :default type) specifically.
I haven't fixed the issues of using :block/left in RTC and undo/redo,
because we might change both soon.
2024-05-02 01:12:22 +08:00
Tienson Qin
9194a671fd
Move outliner core to its own dep
2024-01-03 18:02:48 +08:00
Tienson Qin
b7d9098e80
Move gp-util and gp-config to the common dep
2024-01-03 16:38:05 +08:00
Tienson Qin
018e1ae8ee
Merge branch 'master' into feat/db
2023-12-23 14:18:25 +08:00
Andelf
eb22435280
fix(editor): pasting of html list
2023-12-12 13:29:10 +08:00
Gabriel Horner
3f773ed876
fix: update all db graph uses of mldoc to use db config
...
Left a few uses of gp-mldoc/default-config but only in file graph
specific locations or functionality that wasn't related to db graphs
e.g. handler. plugin. Also removed format/get-default-config as it was unused
Part of LOG-2741
2023-10-27 14:08:55 -04:00
Mega Yu
70c9bb10b8
remove duplicate logic about identify whether it's cut paste
2023-07-05 18:30:43 +08:00
Mega Yu
49f88d3ad1
fix undo don't recover refs
2023-07-05 18:30:43 +08:00
Mega Yu
730b8e0528
cut blocks remains uuid
2023-07-05 18:30:43 +08:00
Mega Yu
690715cb80
fix paste text over a selected formatted link
2023-06-27 14:14:13 +08:00
Tienson Qin
eb49128f4b
fix: disable hiccup export for heading/footer/etc when paste
...
Also, removes ending `-` when converting html to text
2023-06-26 19:56:22 +08:00
Gabriel Horner
57c3253761
Test another paste scenario and some refactor
...
Split up fairly long fn and comment understand cases
2023-06-08 11:55:30 -04:00
Gabriel Horner
26dfa792ff
Fix formatted link pasting for special links - close #8981
2023-06-08 11:55:30 -04:00
Andelf
8ec5ea7a50
fix(ios): no handling of uri pasting
...
Fix #9433
2023-05-23 23:00:20 +08:00
Tienson Qin
1be20c8f11
Move cut-paste? logic to paste handler
2023-05-22 22:15:11 +08:00
Andelf
2effe08054
fix(android): paste with native input device
...
- use legacy method on Android
2023-05-08 17:43:55 +08:00
Tienson Qin
bcf575ebd3
add tests
2023-04-19 15:35:54 +08:00
Tienson Qin
a7dfb37055
fix: can't paste multi-line block using github's code block
2023-04-19 15:35:54 +08:00
Tienson Qin
56074732f2
fix: preserve uuid when paste text
2023-04-19 15:35:54 +08:00
Gabriel Horner
2a78e72f46
Add a test for copied blocks
...
Also removed a prn
2023-03-29 18:41:04 +08:00
Tienson Qin
c876e47e8d
fix: e2e test
2023-03-29 18:41:04 +08:00
Tienson Qin
529a59dfaa
fix: getType exception can't be catched
2023-03-29 18:41:04 +08:00
Tienson Qin
18a44277a3
fix: ci
2023-03-29 18:41:04 +08:00
Tienson Qin
bc635eaf4b
fix: internal blocks paste
2023-03-29 18:41:04 +08:00
Gabriel Horner
07a3adcb52
Fix pasting file - fixes #8926
...
Also remove unused mocks in formatted paste and clean up
editor-on-paste!
2023-03-29 18:39:21 +08:00
Gabriel Horner
7a905583cf
Split raw and formatted paste to prevent future coupling bugs
2023-03-20 09:54:41 -04:00
Gabriel Horner
72298d23c8
Raw paste should only do basic pasting
...
Fix #6815 and fix #6142 .
Raw paste used to do this before #5396 was introduced.
We accidentally coupled rich and raw paste starting at
999defdad1 which then caused these issues
2023-03-20 09:54:41 -04:00
Gabriel Horner
05f6665d12
On normal paste wrap link in macro if possible
...
Remove warning for no macro wrapping as that is excessive warning
2023-03-15 18:27:52 -04:00
Gabriel Horner
e8dd8a679e
Add test for raw url paste fix
2023-03-15 18:27:52 -04:00
situ2001
e0eb520dc3
fix(paste): do not convert url to marco while raw pasting
2023-03-15 18:27:52 -04:00
Zhizhen He
25c15053d6
feat: add typos to GitHub action
...
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com >
2023-02-21 12:01:58 -05:00
megayu
a4a5758afc
enhance: paste from clipboard ( #8642 )
...
replace the selected part from the clipboard
instead of formatting it to a link if it's within the link
2023-02-21 15:55:59 +08:00
Tienson Qin
40ad524443
fix: duplicated block ids in multiple files ( #8668 )
...
fix: duplicate block ids in multiple files
Co-authored-by: Gabriel Horner <gabriel@logseq.com >
2023-02-21 15:50:09 +08:00
rcmerci
21e8a2eab9
dev: add malli-schema & generate kondo config
2023-01-08 20:33:27 +08:00
Peng Xiao
1141890a8c
feat: grouping & ungrouping shapes ( #7713 )
...
Grouping && ungrouping shapes support
2022-12-15 22:58:18 +08:00
sallto
c9d58eb194
fix: Link can't be pasted on selected text in block content ( #7618 )
...
* fix: Link can't be pasted on selected text in block content
fixes #7268
* fix(lint): duplicate import
2022-12-07 09:37:18 -05:00
Zhizhen He
7fdb9aaffb
fix: typo
2022-11-21 17:58:13 -05:00
Peng Xiao
e9edd91003
fix: copying whiteboard shapes into outliner
2022-11-21 14:20:41 +08:00
Tienson Qin
2c5d2a42d7
fix: typo
2022-11-09 11:16:25 +08:00
situ2001
1a216aa1aa
feat(paste): toggle between pasting text or file when they both exist ( #7198 )
...
* feat(paste): toggle between pasting text or file when they both exist
2022-11-09 11:15:41 +08:00
Tienson Qin
dd0169b068
fix: notify users to switch to the new filename format
...
Notify users to switch to the new filename format if there're reserved
chars when syncing.
Also, this commit replace all `js/decodeURIComponent` with
`safe-decode-uri-component` to avoid UI crashes.
2022-11-07 09:22:27 +08:00
Junyi Du
5937082b49
test: enable Node-test on namespaces with dependency on hickory
2022-10-18 16:43:14 +08:00
Peng Xiao
ef6abe8802
Merge remote-tracking branch 'upstream/master' into more-pasting-issues
2022-10-18 10:38:56 +08:00
Tienson Qin
459bd2e779
fix: can't paste number
...
close #6997
2022-10-18 10:13:18 +08:00
Peng Xiao
63b83a03d3
fix(whiteboard): pasting HTML shape issues
2022-10-17 10:31:37 +08:00
Peng Xiao
757ce2a528
fix(whiteboards): some pasting issues
2022-10-16 18:19:19 +08:00
Peng Xiao
4520399ddf
Merge remote-tracking branch 'upstream/master' into whiteboards
2022-09-28 10:29:20 +08:00