Tienson Qin
6101ecd785
enhance: display type block editing check
...
`state/get-edit-block` returns the block when it's going to be edited,
we need to get the current block value to determine whether it's a
display type block, because adding #quote/math/query can happen during
the editing phase.
2025-05-08 22:58:47 +08:00
Gabriel Horner
d4f34ddfba
fix: paste multi lines to math block
2025-05-08 10:09:16 -04:00
rcmerci
7212086fee
fix(editor): paste multi-lines text to quote-block
2025-05-08 17:57:12 +08:00
Tienson Qin
fa6bccd1e7
fix: lint
2025-03-02 16:15:18 +08:00
Tienson Qin
0a29d32c65
fix: embed self in property value
2025-03-02 16:09:21 +08:00
Tienson Qin
8f6a7d85b5
fix: mod+e to embed block
...
Also being able to paste copied block ref when /node embed.
2025-02-21 00:42:26 +08:00
Tienson Qin
8a0a05183e
refactor: remove :block/format for db graphs ( #11667 )
2025-01-05 12:10:47 +08:00
Tienson Qin
cc27407699
fix: store #tag as #[[uuid]] internally
2024-11-30 17:12:15 +08:00
Tienson Qin
faf7f48860
refactor: internal ref uses [[uuid]] instead of ~^[[uuid]]
2024-11-30 17:12:15 +08:00
Tienson Qin
03b3291486
Merge branch 'feat/db' into refactor/dsl-query
2024-10-31 20:57:40 +08:00
Gabriel Horner
fd9330f6d0
Merge branch 'master' into feat/db
2024-10-18 17:35:28 -04:00
Ayush Agrawal
53d8c5a3c6
fix: drag-drop / copy-paste should work for multiple files ( #11214 )
...
Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com >
2024-10-18 17:13:10 -04:00
Gabriel Horner
30a652631d
fix: incorrect return values when edn parsing fails for queries
...
safe-read-string assumed all parsed strings were maps by returning {}
on failure. This could lead to subtle bugs in our new query layer and
other non-map features like hiccup
2024-09-25 11:39:29 -04:00
Tienson Qin
f3c59a9db3
fix: graph-parser tests
2024-09-04 12:55:37 +08:00
Tienson Qin
c23c15ca7e
fix: node references do not appear on blocks that contain a tag
...
fixes https://github.com/logseq/db-test/issues/43
2024-09-04 11:10:14 +08:00
Tienson Qin
b62715ebd8
enhance: replace inline tags with node references
2024-08-09 10:50:17 +08:00
Tienson Qin
b4a887c026
fix: can't paste headings
...
fixes https://github.com/logseq/db-test-cn/issues/7
2024-08-08 20:28:11 +08:00
charlie
ea58da6083
enhance(ui): simplify codes for modals
2024-08-01 16:28:36 +08:00
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